blob: 4d6202943d012a0669907b9eb734c3729c42816f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<!DOCTYPE html>
<meta charset=utf-8>
<title>Dynamically setting `reversed` should update the numbering</title>
<link rel=match href="reversed-1-ref.html">
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
<ol id="x">
<li>Three</li>
<li>Two</li>
<li>One</li>
</ol>
<script>
var l = document.getElementById("x");
var w = l.offsetWidth;
l.setAttribute("reversed", "");
</script>
|