summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/grouping-content/the-ol-element/reversed-1c.html
blob: 6fad13053f1d649473b269176e19e6503a253526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<meta charset=utf-8>
<title>Reversed numbering should update on dynamic addition of child nodes</title>
<link rel=match href="reversed-1-ref.html">
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
<ol id="x" reversed>
  <li>Three</li>
  <li>Two</li>
</ol>
<script>
  var l = document.getElementById("x");
  var w = l.offsetWidth;
  var li = document.createElement("li");
  li.textContent = "One"
  l.appendChild(li);
</script>