summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/contain-style-ol-ordinal-pseudo-reversed.html
blob: dc895abda3b6aacc9cd7d958efb4791e676c9efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<title>CSS Containment: contain:style and &lt;ol&gt; ordinals (pseudo, reversed)</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-2/#containment-style">
<link rel="match" href="reference/contain-style-ol-ordinal-pseudo-reversed-ref.html">
<style>
  li::before, li::after { content: counter(list-item); }
</style>
<ol start=10 reversed>
  <li>A</li>
  <li>B</li>
  <div style="contain:style">
    <li>X</li>
    <li>Y</li>
  </div>
  <li>C</li>
  <li>D</li>
</ol>