RESOLVED FIXED 139199
[Quirks mode only] "Do not trim trailing whitespace followed by <br>" quirk causes lines to stretch
https://bugs.webkit.org/show_bug.cgi?id=139199
Summary [Quirks mode only] "Do not trim trailing whitespace followed by <br>" quirk c...
Said Abou-Hallawa
Reported 2014-12-02 14:32:08 PST
Created attachment 242447 [details] Safari-Rendering Open the following html in WebKit: <html> <body> <img height="10" width="100" style="border: 1px solid blue"> <br/> <img height="100" width="10" style="border: 1px solid purple"> <br/> <img height="10" width="100%" style="border: 1px solid blue"> <br/> <img height="100" width="10" style="border: 1px solid purple"> </body> </html> Result: The first two image rectangles do not touch with other image rectangles. But the last two rectangles touch each other. Expected: In FireFox and IE, the four image rectangles touch each other. It looks like in WebKit, when <br/> forces a new line creation (the first two images), the descent of the font is added to the line runs height. But when the a new line is created because of wrapping (the third image), nothing is added to the runs height.
Attachments
Safari-Rendering (15.87 KB, image/png)
2014-12-02 14:32 PST, Said Abou-Hallawa
no flags
FireFox Rendering (43.66 KB, image/png)
2014-12-02 14:32 PST, Said Abou-Hallawa
no flags
Test Case (310 bytes, text/html)
2015-02-05 13:03 PST, Benjamin Poulain
no flags
Patch (5.25 KB, patch)
2023-04-21 08:54 PDT, zalan
no flags
Patch (124.25 KB, patch)
2023-04-22 06:17 PDT, zalan
ews-feeder: commit-queue-
Patch (561.59 KB, patch)
2023-04-22 07:26 PDT, zalan
no flags
Patch (1.04 MB, patch)
2023-04-22 09:24 PDT, zalan
no flags
Patch (1.05 MB, patch)
2023-04-22 14:46 PDT, zalan
no flags
Patch (1.06 MB, patch)
2023-04-22 19:40 PDT, zalan
no flags
Said Abou-Hallawa
Comment 1 2014-12-02 14:32:36 PST
Created attachment 242449 [details] FireFox Rendering
Radar WebKit Bug Importer
Comment 2 2014-12-02 14:33:40 PST
Benjamin Poulain
Comment 3 2015-02-05 13:03:05 PST
Created attachment 246125 [details] Test Case
Ahmad Saleem
Comment 4 2023-04-21 07:56:47 PDT
I am still able to reproduce this bug in Safari Technology Preview 168 and WebKit ToT similar to attached reference screenshots while Chrome Canary 115 and Firefox Nightly 114 match each other.
zalan
Comment 5 2023-04-21 08:54:30 PDT
zalan
Comment 6 2023-04-21 08:55:08 PDT
Let's remove this legacy quirk and see what breaks (needs rebaseline)
zalan
Comment 7 2023-04-21 10:57:34 PDT
lolz, now I know why I chose to implement this quirk in IFC.
zalan
Comment 8 2023-04-22 06:17:11 PDT
zalan
Comment 9 2023-04-22 07:26:23 PDT
zalan
Comment 10 2023-04-22 09:24:58 PDT
zalan
Comment 11 2023-04-22 14:46:42 PDT
zalan
Comment 12 2023-04-22 19:40:01 PDT
Antti Koivisto
Comment 13 2023-04-23 08:59:18 PDT
Comment on attachment 466049 [details] Patch nice <br>
zalan
Comment 14 2023-04-23 09:53:42 PDT
(In reply to Antti Koivisto from comment #13) > Comment on attachment 466049 [details] > Patch > > nice <br>
EWS
Comment 15 2023-04-23 10:48:52 PDT
Committed 263291@main (20416c8f90ab): <https://commits.webkit.org/263291@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 466049 [details].
zalan
Comment 16 2023-04-23 11:38:50 PDT
*** Bug 233261 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.