summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/selectors/nth-last-child-of-style-sharing-2.html
blob: 19fc9af414eb5e7745e333af9ab1eb9baeaf724d (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
<!doctype html>
<html>
<head>
<title>:nth-last-child correct style-sharing</title>
<link rel="help" href="https://w3c.github.io/csswg-drafts/selectors-4/#child-index">
<link rel="match" href="nth-last-child-of-style-sharing-2-ref.html">
<style>
:nth-last-child(3n+1 of .target) {
    background-color: lime;
}
</style>
</head>
<body>
    <p>Test that style-sharing does not ignore cases matching :nth-last-child(An+B of selector list).</p>
    <p class="target">Target</p>
    <p class="target">Target</p>
    <p class="target">Target</p>
    <p class="target">Target</p>
    <p class="target">Target</p>
    <p class="target">Target</p>
    <p class="target">Target</p>
    <p class="target">Target</p>
    <p class="target">Target</p>
</body>
</html>