blob: 6a21db6c1c3d07671a52d05948a33fd68786759d [file] [log] [blame]
<!DOCTYPE html>
<script>
onload = function() {
document.body.offsetTop; // trigger layout
document.getElementById('elm').className = "x";
}
</script>
<style>
.x::before, .x::after { display:block; -webkit-column-span:all; background:yellow; content:".........."; }
</style>
<p>Test adding ::before and ::after pseudo elements that are spanners.</p>
<p>There should be three rectangles with identical sizes below. The first and third one
should be yellow with some dots inside. The second one should be blue with nothing
inside.</p>
<div style="-webkit-columns:4; columns:4; orphans:1; widows:1; line-height:100px; background:blue;">
<span id="elm">&nbsp;</span>
</div>