summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/last-child-style-sharing.html
blob: ce076f5935ee9bf857b9ddcde4727d5e37f3179f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<html>
    <head>
        <style type="text/css">
            div {
                background-color: red;
                width: 100px;
                height: 100px;
            }

            div:last-child {
                position: relative;
                top: -100px;
                background-color: green;
            }
        </style>
    </head>
    <body>
        <div></div>
        <div></div>
    </body>
</html>