Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1864647 - Don't crash when finding nested relative selectors. r=d…
…shin For now, do the same as pseudo-elements, which is effectively to keep them in the replaced selector but don't match them. Avoid crashing in this case. I filed w3c/csswg-drafts#9600 since this issue isn't specific about :has(), and depending on the result of that discussion, the "proper" solution might be different. Differential Revision: https://phabricator.services.mozilla.com/D193663 UltraBlame original commit: 69bede2c30ec37c0a9b3b44879e28a5dd1c0b1c5
- Loading branch information
Showing
4 changed files
with
434 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
testing/web-platform/tests/css/css-nesting/has-nesting-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
< | ||
! | ||
doctype | ||
html | ||
> | ||
< | ||
title | ||
> | ||
Nested | ||
has | ||
shouldn | ||
' | ||
t | ||
match | ||
< | ||
/ | ||
title | ||
> | ||
< | ||
style | ||
> | ||
ul | ||
{ | ||
background | ||
: | ||
green | ||
} | ||
< | ||
/ | ||
style | ||
> | ||
< | ||
ul | ||
> | ||
< | ||
li | ||
> | ||
Bar | ||
< | ||
/ | ||
li | ||
> | ||
< | ||
/ | ||
ul | ||
> |
Oops, something went wrong.