Bug 1882041 [wpt PR 44785] - layout: Add line height from preserved segment breaks...
commit6fd65b8d17d9a17c7c62fbb890a2959e63123535
authorMartin Robinson <mrobinson@igalia.com>
Wed, 28 Feb 2024 08:39:28 +0000 (28 08:39 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 1 Mar 2024 20:10:21 +0000 (1 20:10 +0000)
tree53194444f1e16aa17232ac2625f09bcc01aef986
parent9d6ffcc3abc6fca9b4c2ad5ce21282c90427ae9c
Bug 1882041 [wpt PR 44785] - layout: Add line height from preserved segment breaks in quirks mode, a=testonly

Automatic update from web-platform-tests
layout: Add line height from preserved segment breaks in quirks mode

In quirks mode, preserved segment breaks should add line height to
lines. This matches the behavior of WebKit and Blink, but not Gecko.

This also handles the special-case of `<br>` elements, which are
implemented with preserved segment breaks via `white-space: pre-line`.
This is an implementation detail though because `<br>` has a special
behavior if the line isn't empty -- it doesn't add any line height in
this case.

--

wpt-commits: b6bf2e7a488398dfcd5a9bb48756a06e17ecf6e2
wpt-pr: 44785
testing/web-platform/tests/quirks/line-height-preserved-segment-break.html [new file with mode: 0644]