Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 5 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-pseudo/parsing/the-checkmark-pseudo-element.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS ::checkmark Pseudo-Element Test</title>
<meta name="assert" content="This test checks the validity of the ::checkmark 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("::checkmark");
test_valid_selector("*::checkmark", "::checkmark");
test_valid_selector("foo.bar[baz]::checkmark");
test_invalid_selector("::checkmark *");
// Combinations
test_invalid_selector("::checkmark::checkmark");
test_invalid_selector("::before::checkmark");
test_invalid_selector("::after::checkmark");
test_invalid_selector("::marker::checkmark");
test_invalid_selector("::placeholder::checkmark");
test_invalid_selector("::checkmark::before");
test_invalid_selector("::checkmark::after");
test_invalid_selector("::checkmark::marker");
test_invalid_selector("::checkmark::placeholder");
test_invalid_selector("::slotted(*)::checkmark::slotted(*)");
test_valid_selector("::slotted(*)::checkmark");
test_valid_selector("::part(foo)::checkmark");
</script>