wpt / css / css-lists / counter-list-item-2.html

Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-lists/counter-list-item-2.html

<!DOCTYPE html>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
  <title>HTML LI element: explicit scope</title>
  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.org">
  <link rel="help" href="https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element">
  <link rel="help" href="https://drafts.csswg.org/css-lists/#list-item-counter">
  <link rel="match" href="counter-list-item-2-ref.html">
  <style>
    li::before { content: counters(list-item,'.'); }
  </style>
</head>
<body>
<ol>
<li></li>
<li></li>
<ol><li></li></ol>
<li></li>
</ol>
</body>
</html>

/css/css-lists/counter-list-item-2-ref.html

<!DOCTYPE html>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html><head>
  <title>HTML LI element: explicit scope</title>
  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.org">
  <style>
    #a::before { content: "1"; }
    #b::before { content: "2"; }
    #c::before { content: "2.1"; }
    #d::before { content: "2.2"; }
  </style>
</head>
<body>
<ol>
<li value="1" id="a"></li>
<li value="2" id="b"></li>
<ol><li value="1" id="c"></li></ol>
<li value="2" id="d"></li>
</ol>
</body>
</html>