-
Notifications
You must be signed in to change notification settings - Fork 3
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 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3697654 Commit-Queue: Byungwoo Lee <blee@igalia.com> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1013385} NOKEYCHECK=True GitOrigin-RevId: e4a649a2f73af3e9d9445e6b27522ba18572d740
- Loading branch information
1 parent
9800f52
commit fc7187c
Showing
7 changed files
with
13 additions
and
111 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
...ternal/wpt/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
23 changes: 0 additions & 23 deletions
23
blink/web_tests/platform/generic/external/wpt/css/selectors/has-basic-expected.txt
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
.../web_tests/platform/generic/external/wpt/css/selectors/has-relative-argument-expected.txt
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
blink/web_tests/platform/generic/external/wpt/css/selectors/parsing/parse-has-expected.txt
This file was deleted.
Oops, something went wrong.