Skip to content

Commit

Permalink
Quirk: bare <li> have list-style-position: inside
Browse files Browse the repository at this point in the history
Fixes #10958.
  • Loading branch information
zcorpan committed Jan 28, 2025
1 parent d5c8e5c commit 18db929
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -136026,6 +136026,14 @@ ul[type=disc i], li[type=disc i] { list-style-type: disc; }
ul[type=circle i], li[type=circle i] { list-style-type: circle; }
ul[type=square i], li[type=square i] { list-style-type: square; }</code></pre>

<p>In <span>quirks mode</span>, the following rules are also expected to apply:</p>

<pre><code class="css">@namespace "http://www.w3.org/1999/xhtml";

li { list-style-position: inside; }
li :is(ul, ol) { list-style-position: outside; }
:is(ul, ol) :is(ul, ol, li) { list-style-position: unset; }</code></pre>

<p>When rendering <code>li</code> elements, non-CSS user agents are expected to use the
<span>ordinal value</span> of the <code>li</code> element to render the counter in the list item
marker.</p>
Expand Down

0 comments on commit 18db929

Please sign in to comment.