Source code
Revision control
Copy as Markdown
Other Tools
<box id="a" style="display: list-item;">
&c&m&q
<box id="b"/>
</box>
#a::first-letter {float: right; color: red;}
</style>
function run() {↩
for (var i = 0; i < 20; i++) {↩
document.documentElement.offsetWidth;↩
doe();↩
document.documentElement.offsetWidth;↩
undoe();↩
}↩
}↩
function doe() {↩
document.getElementById('a').style.direction = 'rtl';↩
document.getElementById('b').style.direction = 'ltr';↩
}↩
function undoe() {↩
document.getElementById('a').style.direction = 'ltr';↩
document.getElementById('b').style.direction = 'rtl';↩
}↩
setTimeout(run, 100);↩
]]></script>
</window>