gecko/layout/reftests/table-anonymous-boxes/white-space-pre-1.html

18 lines
582 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<style>
#x:after { content: " cd"; display: table-cell; }
</style>
<script>
function doTest() {
var f = document.getElementById("f");
f.parentNode.removeChild(f);
}
</script>
</head>
<body onload="doTest()">
<div style="font-family: monospace; width: 10em; white-space: pre-wrap"><span id="f" style="float: left; width: 80%; height: 0.5em"></span><span id="x">a <script>document.body.offsetWidth; dump('aa');</script> <span style="display: table-cell">b</span></span></div>
</body>
</html>