diff --git a/components/layout/stylesheets/quirks-mode.css b/components/layout/stylesheets/quirks-mode.css index cb8d3028441..07726872faf 100644 --- a/components/layout/stylesheets/quirks-mode.css +++ b/components/layout/stylesheets/quirks-mode.css @@ -42,3 +42,8 @@ input:not([type=image]), textarea { box-sizing: border-box; } img[align=left i] { margin-right: 3px; } img[align=right i] { margin-left: 3px; } + +/* 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; } diff --git a/tests/wpt/meta/html/rendering/non-replaced-elements/lists/lists-styles-quirks.html.ini b/tests/wpt/meta/html/rendering/non-replaced-elements/lists/lists-styles-quirks.html.ini index ac56383c492..ceaa3440f62 100644 --- a/tests/wpt/meta/html/rendering/non-replaced-elements/lists/lists-styles-quirks.html.ini +++ b/tests/wpt/meta/html/rendering/non-replaced-elements/lists/lists-styles-quirks.html.ini @@ -1,7 +1,4 @@ [lists-styles-quirks.html] - [
  • - list-style-position] - expected: FAIL - [ (in ) - margin-top] expected: FAIL @@ -541,42 +538,3 @@ [
      (in
          ) - list-style-type] expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL - - [
        • - list-style-position] - expected: FAIL diff --git a/tests/wpt/meta/quirks/line-height-in-list-item.html.ini b/tests/wpt/meta/quirks/line-height-in-list-item.html.ini deleted file mode 100644 index dc0b5c1dcc5..00000000000 --- a/tests/wpt/meta/quirks/line-height-in-list-item.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[line-height-in-list-item.html] - expected: FAIL