summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/nth-child-specificity-4-ref.html
blob: b6f26c9cf4b062c11ba4ed7e7350a4d55de49401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html>
<head>
<style>
    target {
        display: block;
        margin: 2px;
    }
</style>
</head>
<body>
    <div>
        <target>Black text.</target>
        <target>Black text.</target>
        <target style="border: 5px solid blue;">Black text with blue border.</target>
        <target style="color:white; background-color:red; border: 5px solid purple;">White text on red background with purple border.</target>
        <target style="color:red; background-color:green; border: 5px solid blue;">Red text on green background with blue border.</target>
        <target style="color:white; background-color:red; border: 5px solid purple;">White text on red background with purple border.</target>
        <target style="color:red; border: 5px solid black;">Red text with black border.</target>
        <target style="color:white; background-color:red; border: 5px solid purple;">White text on red background with purple border.</target>
    </div>
</body>
</html>