Skip to content

Commit b8b4836

Browse files
dshin-mozmoz-wptsync-bot
authored andcommitted
Take negation into account when coercing unknown matching result to matched.
Differential Revision: https://phabricator.services.mozilla.com/D249118 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1964575 gecko-commit: a9b4912f6ddd65b1ee5b81f997efa6fc8fe2e466 gecko-reviewers: firefox-style-system-reviewers, emilio
1 parent 7050763 commit b8b4836

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!doctype html>
2+
<meta charset="utf-8">
3+
<html class="reftest-wait">
4+
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1964575">
5+
<link rel="author" title="David Shin" href="mailto:[email protected]">
6+
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
7+
<link rel="help" href="https://drafts.csswg.org/selectors-4/#the-last-of-type-pseudo">
8+
<style>
9+
#dut {
10+
width: 100px;
11+
height: 100px;
12+
background: red;
13+
}
14+
.foo:not(:last-of-type ~ .bar) > #dut.baz {
15+
background-color: green;
16+
}
17+
</style>
18+
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
19+
<div>
20+
<span></span>
21+
<div class="foo bar">
22+
<div id=dut></div>
23+
</div>
24+
<span></span>
25+
</div>
26+
<script>
27+
window.onload = () => {
28+
dut.classList.add("baz");
29+
document.documentElement.classList.remove('reftest-wait');
30+
};
31+
</script>
32+
</html>

0 commit comments

Comments
 (0)