Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/grouping-content/the-ol-element/reversed-1b.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset=utf-8>
<title>Dynamically setting `reversed` should update the numbering</title>
<link rel=match href="reversed-1-ref.html">
<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>