From 18db929f694fc6a6dc1aa23600d37323b1b798c1 Mon Sep 17 00:00:00 2001 From: zcorpan Date: Tue, 28 Jan 2025 22:19:57 +0100 Subject: [PATCH 1/4] Quirk: bare
  • have list-style-position: inside Fixes #10958. --- source | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source b/source index 864a982e0de..0c25081329f 100644 --- a/source +++ b/source @@ -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; } +

    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.

    From 57f5ab759a5867779723ef5957d303a586cada6c Mon Sep 17 00:00:00 2001 From: zcorpan Date: Mon, 3 Feb 2025 23:36:49 +0100 Subject: [PATCH 2/4] 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.

    From 2b6cda2f1230f816136e98150b861b457dd8a7a4 Mon Sep 17 00:00:00 2001 From: zcorpan Date: Tue, 4 Feb 2025 12:30:37 +0100 Subject: [PATCH 3/4] Revert "These rules should always apply. Include menu, dir." This reverts commit 57f5ab759a5867779723ef5957d303a586cada6c. --- source | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/source b/source index 499ca004a39..0c25081329f 100644 --- a/source +++ b/source @@ -136009,11 +136009,7 @@ 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:

    @@ -136030,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; } +

    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.

    From a1e21d6b1bc899677101910aed96b567d95e6dd2 Mon Sep 17 00:00:00 2001 From: zcorpan Date: Tue, 4 Feb 2025 12:33:16 +0100 Subject: [PATCH 4/4] Include dir, menu --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index 0c25081329f..0a3bd991d6b 100644 --- a/source +++ b/source @@ -136031,8 +136031,8 @@ ul[type=square i], li[type=square i] { list-style-type: square; }
    @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; }
    +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; }

    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