testing/web-platform/tests/html/semantics/grouping-content/the-ol-element/reversed-1b.html
author Manish Goregaokar <manishearth@gmail.com>
Mon, 01 Aug 2016 16:41:40 +0530
changeset 307520 738847eb38313539c6efc7678a53d84ee9fb0266
parent 203642 891ab4bd814a1a4b9b83fa6b40bceb8aa2e4e46a
child 313659 799275459ccb35cfc023fd3a3ae820df94095dce
permissions -rw-r--r--
Bug 1290813 - Include <ol reversed> reftests in wpt manifest, add test for nested div; r=xidorn MozReview-Commit-ID: HtyLrSiX0KS

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