-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply the resolution of csswg issue #6952 : disallow nesting :has()
Remove nesting :has() cases from the existing wpt tests and add a tentative wpt test to check disallowing nesting :has() inside :has(). w3c/csswg-drafts#6952 (comment) Bug: 669058, 1334631 Change-Id: I549ee9d5b1ca17d22f7f8982d0e9ff96df6937df
- Loading branch information
1 parent
df393ed
commit 8b9efe6
Showing
4 changed files
with
13 additions
and
12 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
13 changes: 13 additions & 0 deletions
13
css/selectors/parsing/parse-has-disallow-nesting-has-inside-has.tentative.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,13 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Selectors: The relational pseudo-class (disallow nesting :has() inside :has())</title> | ||
<link rel="author" title="Byungwoo Lee" href="mailto:blee@igalia.com"> | ||
<link rel="help" href="https://drafts.csswg.org/selectors-4/#has-pseudo"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/parsing-testcommon.js"></script> | ||
<script> | ||
test_valid_selector('.a:has(.b:has(.c))', '.a:has()'); | ||
test_valid_selector('.a:has(.b:has(.c), .d)', '.a:has(.d)'); | ||
test_valid_selector('.a:has(.b:is(.c:has(.d) .e))', '.a:has(.b:is())'); | ||
</script> |
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