mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
layout: Add line height from preserved segment breaks in quirks mode (#31419)
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.
This commit is contained in:
parent
a9a7e8a5cf
commit
e5598590ba
12 changed files with 158 additions and 10 deletions
|
@ -340751,6 +340751,19 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"line-height-preserved-segment-break.html": [
|
||||
"8ad2651f4b999091996682be72745e31e0ce559a",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square.xht",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"line-height-quirks-mode.html": [
|
||||
"9e9baf62226dfccc15f81b6d22edb87a29e2d313",
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue