Skip to content

Commit

Permalink
These rules should always apply. Include menu, dir.
Browse files Browse the repository at this point in the history
See web compat analysis: #10958 (comment)
  • Loading branch information
zcorpan committed Feb 3, 2025
1 parent 18db929 commit 57f5ab7
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -136009,7 +136009,11 @@ dir, menu, ul {
}
:is(dir, menu, ol, ul) :is(dir, menu, ol, ul) :is(dir, menu, ul) {
list-style-type: square;
}</code></pre>
}

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; }</code></pre>

<p id="decohints">The following rules are also expected to apply, as <span>presentational
hints</span>:</p>
Expand All @@ -136026,14 +136030,6 @@ 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 57f5ab7

Please sign in to comment.