Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

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