summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/contain-style-ol-ordinal-pseudo.html
blob: a9ccfb5930e7f41762b827850ca9a54b5a46b5c1 (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)</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-2/#containment-style">
<link rel="match" href="reference/contain-style-ol-ordinal-pseudo-ref.html">
<style>
  li::before, li::after { content: counter(list-item); }
</style>
<ol start=10>
  <li>A</li>
  <li>B</li>
  <div style="contain:style">
    <li>X</li>
    <li>Y</li>
  </div>
  <li>C</li>
  <li>D</li>
</ol>