Skip to content

Commit 3e8af1a

Browse files
tcaptan-crmoz-wptsync-bot
authored andcommitted
Bug 1927864 [wpt PR 48861] - Add ::select-arrow pseudo element parsing support, a=testonly
Automatic update from web-platform-tests Add ::select-arrow pseudo element parsing support Defined in: w3c/csswg-drafts#10986 Bug: 369319576 Change-Id: I4161a9a0111ff2247ab6d9009c5bdec96ac1c855 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5967877 Commit-Queue: Traian Captan <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Reviewed-by: Kevin Babbitt <[email protected]> Cr-Commit-Position: refs/heads/main@{#1375343} -- wpt-commits: 2becea8aa06af9b51bb319f001aa880906fb26ec wpt-pr: 48861
1 parent 87f6c05 commit 3e8af1a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS ::select-arrow Pseudo-Element Test</title>
4+
<link rel="help" href="https://github.com/w3c/csswg-drafts/pull/10986">
5+
<meta name="assert" content="This test checks the validity of the ::select-arrow pseudo element selector." />
6+
<script src="/resources/testharness.js"></script>
7+
<script src="/resources/testharnessreport.js"></script>
8+
<script src="/css/support/parsing-testcommon.js"></script>
9+
<script>
10+
test_valid_selector("::select-arrow");
11+
test_valid_selector("*::select-arrow", "::select-arrow");
12+
test_valid_selector("foo.bar[baz]::select-arrow");
13+
test_invalid_selector("::select-arrow *");
14+
15+
// Combinations
16+
test_invalid_selector("::select-arrow::select-arrow");
17+
18+
test_invalid_selector("::before::select-arrow");
19+
test_invalid_selector("::after::select-arrow");
20+
test_invalid_selector("::marker::select-arrow");
21+
test_invalid_selector("::placeholder::select-arrow");
22+
23+
test_invalid_selector("::select-arrow::before");
24+
test_invalid_selector("::select-arrow::after");
25+
test_valid_selector("::select-arrow::marker");
26+
test_invalid_selector("::select-arrow::placeholder");
27+
28+
test_invalid_selector("::slotted(*)::select-arrow::slotted(*)");
29+
test_valid_selector("::slotted(*)::select-arrow");
30+
31+
test_valid_selector("::part(foo)::select-arrow");
32+
</script>

0 commit comments

Comments
 (0)