From 57f5ab759a5867779723ef5957d303a586cada6c Mon Sep 17 00:00:00 2001 From: zcorpan Date: Mon, 3 Feb 2025 23:36:49 +0100 Subject: [PATCH] These rules should always apply. Include menu, dir. See web compat analysis: https://github.com/whatwg/html/issues/10958#issuecomment-2632294638 --- source | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/source b/source index 0c25081329f..499ca004a39 100644 --- a/source +++ b/source @@ -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; -} +} + +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; }

The following rules are also expected to apply, as presentational hints:

@@ -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; } -

In quirks mode, the following rules are also expected to apply:

- -
@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; }
-

When rendering li elements, non-CSS user agents are expected to use the ordinal value of the li element to render the counter in the list item marker.