Skip to content

Commit 92cc074

Browse files
tcaptan-crchromium-wpt-export-bot
authored andcommitted
Add ::check pseudo element
This pseudo element is added to allow <option> elements inside <select> elements to have a standardized and customizable checkmark icon. Spec definition: ``` Option checkmark icon: the '::check' pseudo-element The '::check' pseudo-element is only generated when the originating element is a option element which has an ancestor select element with base appearance. '::check' is a tree-abiding pseudo-element. It accepts all properties. It inherits from its originating element. '::check' generates a box as if it was an child of its originating element, preceding any boxes generated by the '::before' pseudo-element, with content as specified by 'content'. ``` Defined in: w3c/csswg-drafts#10986 Bug: 369319576 Change-Id: Ie5058d66f90644f9732bc619a3f587b6203d1cf9
1 parent 2acf4a1 commit 92cc074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/semantics/forms/the-select-element/customizable-select/option-computed-style.tentative.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<script>
1212
test(() => {
1313
assert_equals(
14-
getComputedStyle(document.querySelector('option'), '::before').content,
14+
getComputedStyle(document.querySelector('option'), '::check').content,
1515
`"\u2713" / ""`);
1616
}, 'appearance:base-select options should have a checkmark with empty alt text.');
1717
</script>

0 commit comments

Comments
 (0)