summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/nth-child-of-compound-selector-ref.html
blob: 3acec23e61ddb693918aa7531b84c8f3ed37cb5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<html>
<body>
    <p></p>
    <p>This test the styling of paragraphs with :nth-child(An+B of selector). If the test succeed, paragraphs that say "green" should have a green background.</p>
    <p>White!</p>
    <p>White!</p>
    <p>White!</p>
    <p>White!</p>
    <p>White!</p>
    <p style="background-color: lime">Green</p>
    <p>White!</p>
    <p>White!</p>
    <p>White!</p>
    <p>White!</p>
    <p>White!</p>
</body>
</html>