-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1515858 [wpt PR 14623] - [LayoutNG] Don't allow line height quirk…
… inside list items., a=testonly Automatic update from web-platform-tests [LayoutNG] Don't allow line height quirk inside list items. This makes us match legacy engine behavior more closely, and both Edge and Firefox have something similar, although Firefox triggers based on element type (LI), and not display type (list-item). There's currently nothing in the spec [1] that suggests such special behavior for list items. [1] https://quirks.spec.whatwg.org/#the-line-height-calculation-quirk This fix makes the line height differences go away in the test tables/mozilla/bugs/bug23235.html (but note that it will still require a rebaseline, because of minor text rendering differences between legacy and NG). See whatwg/quirks#38 for spec discussion. Change-Id: I396c0c85454feeaa45a0a5953b9e6b7c475d131e Reviewed-on: https://chromium-review.googlesource.com/c/1379897 Commit-Queue: Emil A Eklund <eaechromium.org> Reviewed-by: Aleks Totic <atoticchromium.org> Reviewed-by: Koji Ishii <kojiichromium.org> Reviewed-by: Emil A Eklund <eaechromium.org> Cr-Commit-Position: refs/heads/master{#618304} -- wpt-commits: 6bfd51316130abc1d6b648ba281792fb34e4ee82 wpt-pr: 14623 UltraBlame original commit: e820da6c7a2e8b6a9d20eb4dc0bddf2c4e763035
- Loading branch information
Showing
2 changed files
with
275 additions
and
0 deletions.
There are no files selected for viewing
211 changes: 211 additions & 0 deletions
211
testing/web-platform/tests/quirks/line-height-in-list-item.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
< | ||
link | ||
rel | ||
= | ||
" | ||
author | ||
" | ||
title | ||
= | ||
" | ||
Morten | ||
Stenshorne | ||
" | ||
href | ||
= | ||
" | ||
mstensho | ||
chromium | ||
. | ||
org | ||
" | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
" | ||
help | ||
" | ||
href | ||
= | ||
" | ||
https | ||
: | ||
/ | ||
/ | ||
quirks | ||
. | ||
spec | ||
. | ||
whatwg | ||
. | ||
org | ||
/ | ||
# | ||
the | ||
- | ||
line | ||
- | ||
height | ||
- | ||
calculation | ||
- | ||
quirk | ||
" | ||
> | ||
< | ||
link | ||
rel | ||
= | ||
" | ||
match | ||
" | ||
href | ||
= | ||
" | ||
reference | ||
/ | ||
green | ||
- | ||
100px | ||
- | ||
square | ||
- | ||
no | ||
- | ||
red | ||
. | ||
html | ||
" | ||
> | ||
< | ||
meta | ||
name | ||
= | ||
" | ||
assert | ||
" | ||
content | ||
= | ||
" | ||
List | ||
items | ||
force | ||
strict | ||
line | ||
height | ||
; | ||
see | ||
https | ||
: | ||
/ | ||
/ | ||
github | ||
. | ||
com | ||
/ | ||
whatwg | ||
/ | ||
quirks | ||
/ | ||
issues | ||
/ | ||
38 | ||
" | ||
> | ||
< | ||
p | ||
> | ||
There | ||
should | ||
be | ||
a | ||
filled | ||
green | ||
square | ||
below | ||
and | ||
no | ||
red | ||
. | ||
< | ||
/ | ||
p | ||
> | ||
< | ||
div | ||
style | ||
= | ||
" | ||
width | ||
: | ||
100px | ||
; | ||
height | ||
: | ||
100px | ||
; | ||
background | ||
: | ||
red | ||
; | ||
" | ||
> | ||
< | ||
li | ||
style | ||
= | ||
" | ||
line | ||
- | ||
height | ||
: | ||
50px | ||
; | ||
color | ||
: | ||
green | ||
; | ||
background | ||
: | ||
green | ||
; | ||
" | ||
> | ||
< | ||
br | ||
> | ||
< | ||
div | ||
style | ||
= | ||
" | ||
display | ||
: | ||
inline | ||
- | ||
block | ||
; | ||
width | ||
: | ||
1px | ||
; | ||
height | ||
: | ||
1px | ||
; | ||
" | ||
> | ||
< | ||
/ | ||
div | ||
> | ||
< | ||
/ | ||
li | ||
> | ||
< | ||
/ | ||
div | ||
> |
64 changes: 64 additions & 0 deletions
64
testing/web-platform/tests/quirks/reference/green-100px-square-no-red.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
< | ||
link | ||
rel | ||
= | ||
" | ||
author | ||
" | ||
title | ||
= | ||
" | ||
Morten | ||
Stenshorne | ||
" | ||
href | ||
= | ||
" | ||
mstensho | ||
chromium | ||
. | ||
org | ||
" | ||
> | ||
< | ||
p | ||
> | ||
There | ||
should | ||
be | ||
a | ||
filled | ||
green | ||
square | ||
below | ||
and | ||
no | ||
red | ||
. | ||
< | ||
/ | ||
p | ||
> | ||
< | ||
div | ||
style | ||
= | ||
" | ||
width | ||
: | ||
100px | ||
; | ||
height | ||
: | ||
100px | ||
; | ||
background | ||
: | ||
green | ||
; | ||
" | ||
> | ||
< | ||
/ | ||
div | ||
> |