blob: 40ad9e590e971e712fb9800aba8d2d5f448fee90 [file] [log] [blame]
<style type="text/css">
#target::before { content: "BEFORE"; display: table-row; }
#target::after { content: "AFTER"; display: table-row; }
</style>
<p>
Should say &ldquo;BEFORE CONTENT AFTER CONTENT&rdquo;
</p>
<div id="not-target" style="display: table">
<div>CONTENT</div>
</div> CONTENT
<script>
document.getElementById("not-target").id = "target";
document.body.offsetTop;
document.body.style.color = "red";
</script>