gecko-dev/layout/style/crashtests/1315894-1.html

10 строки
273 B
HTML

<!DOCTYPE html>
<div style="display: none"><span>x</span></div>
<script>
document.body.offsetWidth;
document.querySelector("div").style.display = "inline";
document.body.offsetWidth;
document.querySelector("span").style.color = "blue";
document.body.offsetWidth;
</script>