-
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.
Add ::check pseudo element parsing support
Defined in: w3c/csswg-drafts#10986 Bug: 369319576 Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
- Loading branch information
1 parent
9c76757
commit 2a0e271
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
css/css-pseudo/parsing/the-check-pseudo-element.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,32 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS ::check Pseudo-Element Test</title> | ||
<link rel="help" href="https://github.com/w3c/csswg-drafts/pull/10986"> | ||
<meta name="assert" content="This test checks the validity of the ::check pseudo element selector." /> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/css/support/parsing-testcommon.js"></script> | ||
<script> | ||
test_valid_selector("::check"); | ||
test_valid_selector("*::check", "::check"); | ||
test_valid_selector("foo.bar[baz]::check"); | ||
test_invalid_selector("::check *"); | ||
|
||
// Combinations | ||
test_invalid_selector("::check::check"); | ||
|
||
test_invalid_selector("::before::check"); | ||
test_invalid_selector("::after::check"); | ||
test_invalid_selector("::marker::check"); | ||
test_invalid_selector("::placeholder::check"); | ||
|
||
test_invalid_selector("::check::before"); | ||
test_invalid_selector("::check::after"); | ||
test_valid_selector("::check::marker"); | ||
test_invalid_selector("::check::placeholder"); | ||
|
||
test_invalid_selector("::slotted(*)::check::slotted(*)"); | ||
test_valid_selector("::slotted(*)::check"); | ||
|
||
test_valid_selector("::part(foo)::check"); | ||
</script> |