summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/table-table-before-after-child-add.html
blob: 5fcf0a2b582eff664666c73e57f3f7792d762602 (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; }
    #target::after { content: "AFTER"; display: table; }
</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>