mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
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:
parent
612aabaedf
commit
b2873d7ed6
Notes:
github-actions[bot]
2025-03-26 09:48:43 +00:00
Author: https://github.com/AtkinsSJ
Commit: b2873d7ed6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4080
2 changed files with 26 additions and 16 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue