<!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>
