summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/table-parts-before-and-after.html
blob: bd14b14f3f5a40c7fd3c0079ba1f4809f7afe75b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<style>
    body {
        font-family: ahem;
        font-size: 40px;
        -webkit-font-smoothing: none;
    }

    div::before {
        content: "1";
    }

    div.table-before::before {
        display: table;
    }

    div.row-group-before::before {
        display: table-row-group;
    }

    div.row-before::before {
        display: table-row;
    }

    div::after {
        content: "333";
        display: table-cell;
    }
</style>
<div class="table-before">22</div>
<div id="target-1" class="table-before">22</div>
<div class="row-group-before">22</div>
<div id="target-2" class="row-group-before">22</div>
<div class="row-before">22</div>
<div id="target-3" class="row-before">22</div>
<script>
    document.getElementById("target-1").style.color = "blue";
    document.getElementById("target-2").style.color = "blue";
    document.getElementById("target-3").style.color = "blue";
</script>