Bug 279450

Summary: Table layout inconsistency with <td width="100%">
Product: WebKit Reporter: php4fan
Component: Layout and RenderingAssignee: alan <zalan>
Status: RESOLVED FIXED    
Severity: Critical CC: bfulgham, dfairbanks06, karlcow, koivisto, mpComplete, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 18   
Hardware: All   
OS: macOS 15   
Attachments:
Description Flags
screenshot safari
none
screenshot chrome (firefox is the same)
none
Test reduction
none
Patch
none
[fast-cq]Patch none

php4fan
Reported 2024-09-10 09:35:56 PDT
Created attachment 472516 [details] screenshot safari Visit this url in Safari on Mac OS: https://opentarget.org/test/testtable.html Now check the same url in Chrome, Firefox or Opera. Expected: they should look the same Observed: they look different (see screenshots). In particular, note the <td> element in the first table with a pink background. It has a width="100%" attribute. In every other browser, this causes the table to stretch to the entire width of the containing div, which is in turn determined by the width of the second table. But in Safari, the width="100%" on the TD has no effect whatsoever, and the td only occupies whatever space is needed to fit its content (a blank space).
Attachments
screenshot safari (8.70 KB, image/png)
2024-09-10 09:35 PDT, php4fan
no flags
screenshot chrome (firefox is the same) (1.07 KB, image/png)
2024-09-10 09:36 PDT, php4fan
no flags
Test reduction (392 bytes, text/html)
2024-09-14 13:04 PDT, alan
no flags
Patch (5.56 KB, patch)
2024-09-14 18:40 PDT, alan
no flags
[fast-cq]Patch (13.86 KB, patch)
2024-09-15 12:14 PDT, alan
no flags
php4fan
Comment 1 2024-09-10 09:36:27 PDT
Created attachment 472517 [details] screenshot chrome (firefox is the same)
alan
Comment 2 2024-09-14 13:04:23 PDT
Created attachment 472559 [details] Test reduction
alan
Comment 3 2024-09-14 18:40:09 PDT
alan
Comment 4 2024-09-15 12:14:20 PDT
Created attachment 472566 [details] [fast-cq]Patch
EWS
Comment 5 2024-09-16 11:35:00 PDT
Committed 283711@main (031e1a8d56a5): <https://commits.webkit.org/283711@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 472566 [details].
Radar WebKit Bug Importer
Comment 6 2024-09-16 11:36:13 PDT
alan
Comment 7 2024-09-19 19:08:33 PDT
*** Bug 22547 has been marked as a duplicate of this bug. ***
alan
Comment 8 2024-10-04 17:36:31 PDT
*** Bug 14856 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.