blob: e1d1535bbb1e63ed0412df0219a1019ed222992c [file] [log] [blame]
<style type="text/css">
#target::before { content: "BEFORE"; }
#target::after { content: "AFTER"; }
</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>