Skip to content

Commit

Permalink
Add ::check pseudo element parsing support
Browse files Browse the repository at this point in the history
Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
  • Loading branch information
tcaptan-cr authored and chromium-wpt-export-bot committed Oct 15, 2024
1 parent 9c76757 commit 2a0e271
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions css/css-pseudo/parsing/the-check-pseudo-element.tentative.html
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>

0 comments on commit 2a0e271

Please sign in to comment.