Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/selectors/nth-last-child-of-style-sharing-1.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<title>:nth-last-child correct style-sharing</title>
<link rel="match" href="nth-last-child-of-style-sharing-1-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>
</body>
</html>