1
0
Fork 0
firefox/testing/web-platform/tests/css/selectors/nth-last-child-invalid.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

24 lines
680 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Selectors: :nth-last-child() with no argument</title>
<link rel="help" href="https://crbug.com/355451192">
<link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#target:nth-last-child() { color: red; }
#target { color: green; }
</style>
<head>
<body>
<body>
<div id="target">Test passes if this line is green.</div>
<script>
test(() => {
assert_equals(getComputedStyle(target).color, 'rgb(0, 128, 0)');
});
</script>
</body>
</html>