blob: ec6777041eb3a91b30592fafbe37fb2e65a21bb7 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Spanner as ::after pseudo element</title>
<script>
function test() {
document.body.offsetTop; // trigger layout
document.getElementById('elm').className = "x";
}
</script>
<style>
.x::after { display:block; -webkit-column-span:all; column-span:all; background:yellow; content:".........."; }
</style>
</head>
<body onload="test()">
<p>There should be two rectangles with identical sizes below. The first one should be blue
with nothing inside. The second one should be yellow with some dots inside.</p>
<div style="-webkit-columns:4; columns:4; orphans:1; widows:1; line-height:100px; background:blue;">
<span id="elm">&nbsp;</span>
</div>
</body>
</html>