Skip to content

Commit

Permalink
Bug 1933019 [wpt PR 49344] - Rename ::check pseudo element to ::check…
Browse files Browse the repository at this point in the history
…mark, a=testonly

Automatic update from web-platform-tests
Rename ::check pseudo element to ::checkmark

w3c/csswg-drafts#10908 (comment)

Bug: 379985080
Change-Id: Ib2ada61e49f62e430ca0c7dce931e05fdd6431e1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6043233
Commit-Queue: Traian Captan <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Auto-Submit: Traian Captan <[email protected]>
Reviewed-by: Nate Chapin <[email protected]>
Reviewed-by: Aaron Leventhal <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1387229}

--

wpt-commits: fe388646e736d63513813f1e0c80db1bdb638b7a
wpt-pr: 49344
  • Loading branch information
tcaptan-cr authored and moz-wptsync-bot committed Nov 28, 2024
1 parent e7747e9 commit 92f186c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS ::check Pseudo-Element Test</title>
<title>CSS ::checkmark 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." />
<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("::check");
test_valid_selector("*::check", "::check");
test_valid_selector("foo.bar[baz]::check");
test_invalid_selector("::check *");
test_valid_selector("::checkmark");
test_valid_selector("*::checkmark", "::checkmark");
test_valid_selector("foo.bar[baz]::checkmark");
test_invalid_selector("::checkmark *");

// Combinations
test_invalid_selector("::check::check");
test_invalid_selector("::checkmark::checkmark");

test_invalid_selector("::before::check");
test_invalid_selector("::after::check");
test_invalid_selector("::marker::check");
test_invalid_selector("::placeholder::check");
test_invalid_selector("::before::checkmark");
test_invalid_selector("::after::checkmark");
test_invalid_selector("::marker::checkmark");
test_invalid_selector("::placeholder::checkmark");

test_invalid_selector("::check::before");
test_invalid_selector("::check::after");
test_valid_selector("::check::marker");
test_invalid_selector("::check::placeholder");
test_invalid_selector("::checkmark::before");
test_invalid_selector("::checkmark::after");
test_valid_selector("::checkmark::marker");
test_invalid_selector("::checkmark::placeholder");

test_invalid_selector("::slotted(*)::check::slotted(*)");
test_valid_selector("::slotted(*)::check");
test_invalid_selector("::slotted(*)::checkmark::slotted(*)");
test_valid_selector("::slotted(*)::checkmark");

test_valid_selector("::part(foo)::check");
test_valid_selector("::part(foo)::checkmark");
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<script>
test(() => {
assert_equals(
getComputedStyle(document.querySelector('option'), '::check').content,
getComputedStyle(document.querySelector('option'), '::checkmark').content,
`"\u2713" / ""`);
}, 'appearance:base-select options should have a checkmark with empty alt text.');
</script>

0 comments on commit 92f186c

Please sign in to comment.