mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
layout: Implement list-style-position
quirk (#37837)
In quirks mode, the ::marker of a bare `<li>` should be `list-style-position: inside`, Testing: Some WPT improvement Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
6dafeb7a59
commit
00472dec8e
3 changed files with 5 additions and 44 deletions
|
@ -42,3 +42,8 @@ input:not([type=image]), textarea { box-sizing: border-box; }
|
|||
|
||||
img[align=left i] { margin-right: 3px; }
|
||||
img[align=right i] { margin-left: 3px; }
|
||||
|
||||
/* https://html.spec.whatwg.org/multipage/rendering.html#lists:quirks-mode */
|
||||
li { list-style-position: inside; }
|
||||
li :is(dir, menu, ol, ul) { list-style-position: outside; }
|
||||
:is(dir, menu, ol, ul) :is(dir, menu, ol, ul, li) { list-style-position: unset; }
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[lists-styles-quirks.html]
|
||||
[<li> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<dir> (in <dir>) - margin-top]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -541,42 +538,3 @@
|
|||
|
||||
[<ul> (in <ul><ul>) - list-style-type]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="1"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="a" class="type-a"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="A" class="type-A"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="i" class="type-i"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="I" class="type-I"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="none"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="NONE"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="disc"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="DISC"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="circle"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="CIRCLE"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="square"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
||||
[<li type="SQUARE"> - list-style-position]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[line-height-in-list-item.html]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue