LibWeb/CSS: Add new list-style-position quirk

Corresponds to d79381d822

In quirks mode, a `<li>` with no parent list element now has
`list-style-position: inside`.
This commit is contained in:
Sam Atkins 2025-03-25 10:39:29 +00:00 committed by Andreas Kling
commit b2873d7ed6
Notes: github-actions[bot] 2025-03-26 09:48:43 +00:00
2 changed files with 26 additions and 16 deletions

View file

@ -1,3 +1,5 @@
@namespace "http://www.w3.org/1999/xhtml";
/* 15.3.3 Flow content
* https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
*/
@ -6,6 +8,14 @@ form {
margin-bottom: 1em;
}
/* 15.3.7 Lists
* 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; }
/* 15.3.8 Tables
* https://html.spec.whatwg.org/multipage/rendering.html#tables-2
*/