summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/table-row-before-after-child-add.html
blob: f052a4f7f7dc9cd94c1b5a457746dc17670d1ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<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>