<!DOCTYPE html>
<meta charset=utf-8>
<title>Reverse numbering should not count display:none elements</title>
<link rel=match href="reversed-1-ref.html">
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
<ol reversed>
  <li>Three</li>
  <li style="display:none">Three</li>
  <li>Two</li>
  <li>One</li>
</ol>
