`width: 1%` on nested table cell causes its table to hog horizontal space
Originator: | cvrebert | ||
Number: | rdar://20839572 | Date Originated: | 06-May-2015 |
Status: | Closed | Resolved: | 28-May-2016 |
Product: | Safari | Product Version: | 8.0.5 (10600.5.17) |
Classification: | Other Bug | Reproducible: | Always |
Summary: Adding a `width: 1%;` style to a nested table cell causes its sibling cell to hog horizontal space. Firefox and IE11/Edge don't suffer from this problem. Steps to Reproduce: 1. Open http://jsfiddle.net/eejzdf4a/ in Safari. 2. Look at the Result pane in the lower-right of the window. Expected Results: In the portion of the example titled "Wonky", the green and yellow cells should each take up a somewhat equal amount of horizontal space. The green and yellow cells should have the same boundaries that they do in the portion of the example titled '"Fixed" by removing the one-percent class'. (See the Firefox screenshot. IE11/Edge gives the same result as Firefox.) Actual Results: In the portion of the example titled "Wonky", the green cell takes up a very small amount of horizontal space, whereas the yellow cell takes up almost all of the horizontal space. The green and yellow cells have different boundaries than they do in the portion of the example titled '"Fixed" by removing the one-percent class'. (See the Safari screenshot.) Version: Platform: OS X Yosemite 10.10.3 (14D136) Safari Version: 8.0.5 (10600.5.17) Notes: WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=144696 Bootstrap bug report: https://github.com/twbs/bootstrap/issues/16372 Original corresponding Chrome bug report: https://code.google.com/p/chromium/issues/detail?id=427994 Other, more complex example of the bug, that uses Bootstrap: http://jsfiddle.net/rq3shh3t/2/ Configuration: Attachments: 'bug.png' and 'example-eejzdf4a.html' were successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Fixed in WebKit Nightly
Fixed by https://bugs.webkit.org/show_bug.cgi?id=144696#c11