summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/nth-child-specificity-2-ref.html
blob: 1f7d376593050135773f57f02bf8de9d35ebb765 (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 style="background-color: white; color: black; border: none;">Black text on white background.</target>
        <target style="background-color: red; color: white; border: 5px solid purple;">White text on red background with a purple border.</target>
        <target style="background-color: green; color: red; border: none;">Red text on green background.</target>
        <target style="background-color: red; color: white; border: 5px solid purple;">White text on red background with a purple border.</target>
        <target style="background-color: white; color: black; border: 5px solid blue;">Black text on white background with a blue border.</target>
        <target style="background-color: red; color: white; border: 5px solid purple;">White text on red background with a purple border.</target>
        <target style="background-color: green; color: red; border: 5px solid blue;">Red text on green background with a blue border.</target>
        <target style="background-color: red; color: white; border: 5px solid purple;">White text on red background with a purple border.</target>
    </div>
</body>
</html>