Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-forms-1] Add new pseudo-elements for customizable select #10986

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions css-forms-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,34 @@ Styling form control pickers: the ''::picker()'' pseudo-element</h3>
&lt;/style>
</pre>

<h3 id="select-arrow">
Select dropdown icon: the ''::select-arrow'' pseudo-element</h3>

The ''::select-arrow'' pseudo-element is only generated when the
<a>originating element</a> is a <{select}> element with <a>base
appearance</a>.

''::select-arrow'' is a [=tree-abiding pseudo-element=]. It accepts all
properties. It inherits from its [=originating element=].

''::select-arrow'' generates a box as if it was an child of its
<a>originating element</a>, after any boxes generated by the ''::after''
pseudo-element, with content as specified by 'content'.

<h3 id="check">
Option checkmark icon: the ''::check'' pseudo-element</h3>

The '::check'' pseudo-element is only generated when the <a>originating
element</a> is a <{option}> element which has an ancestor <{select}> element
with <a>base appearance</a>.

''::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 <a>originating
element</a>, preceding any boxes generated by the ''::before''
pseudo-element, with content as specified by 'content'.


Basic Styling Proposals {#ideas}
================================
Expand Down
2 changes: 1 addition & 1 deletion css-pseudo-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2053,4 +2053,4 @@ Acknowledgements</h2>
get-computed-style-crash.html
svg-text-selection-002.html
text-selection.html
</wpt>
</wpt>