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

Merged
merged 10 commits into from
Nov 27, 2024

Conversation

josepharhar
Copy link
Contributor

@josepharhar josepharhar commented Oct 1, 2024

This PR adds the ::check and ::select-arrow pseudo-elements so that select elements can have a standardized and customizable dropdown icon on the button and checkmarks next to options.

Fixes #10908

This PR adds the ::check and ::select-icon pseudo-elements so that
select elements can have a standardized and customizable dropdown icon
on the button and checkmarks next to options.

Fixes w3c#10908
@josepharhar
Copy link
Contributor Author

I mostly copied the definitions from before/after. If before/after aren't actually part-like, then should I copy the text from ::backdrop that looks like this instead of saying these pseudos are part like?

The ::backdrop pseudo-element is a tree-abiding pseudo-element. It accepts all properties. It inherits from its originating element.

Copy link
Member

@dbaron dbaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments (and questions) here -- I think they apply equally to both pseudos, but I've only made them once.

restriction on which properties apply to the ''::select-arrow'' pseudo-element.

''::select-arrow'' generates a box as if it was an immediate child of its
<a>originating element</a>, preceding any boxes generated by the ''::before''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I'm wondering if the idea that it precedes the ::before is incompatible with being part-like. I'm a little worried that it might be.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made it not part like anymore. Does that resolve this?


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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also worried about allowing content here when it doesn't (in reality) work on elements, which part-like pseudo-elements should fully behave like.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made it not part like anymore. Does that resolve this?

css-pseudo-4/Overview.bs Outdated Show resolved Hide resolved
''::select-arrow'' is a [=part-like pseudo-element=], so there is no
restriction on which properties apply to the ''::select-arrow'' pseudo-element.

''::select-arrow'' generates a box as if it was an immediate child of its
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there conditions on when this generates a box? Does it only do something for appearance: base-select?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I added the restriction that there must be a select element with base appearance.

Comment on lines 1653 to 1654
The '::check'' pseudo-element only matches when the <a>originating
element</a> is a <{option}> element.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I commented in the chromium prototype CL, should this instead say that the pseudo-element is only generated for option elements? That's an observable difference for getComputedStyle(div, '::check').

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to say generated instead of matches

@josepharhar
Copy link
Contributor Author

I mostly copied the definitions from before/after. If before/after aren't actually part-like, then should I copy the text from ::backdrop that looks like this instead of saying these pseudos are part like?

The ::backdrop pseudo-element is a tree-abiding pseudo-element. It accepts all properties. It inherits from its originating element.

It sounds like this is ok, so I copied the text from ::backdrop to make it not part-like anymore

Copy link
Collaborator

@fantasai fantasai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase this over the css-forms-1 draft. :)

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 15, 2024
Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
aarongable pushed a commit to chromium/chromium that referenced this pull request Oct 15, 2024
Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5928423
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1369011}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 15, 2024
Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5928423
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1369011}
@josepharhar
Copy link
Contributor Author

Please rebase this over the css-forms-1 draft. :)

done

@josepharhar josepharhar changed the title [css-pseudo-4] Add new pseudo-elements for customizable select [css-forms-1] Add new pseudo-elements for customizable select Oct 15, 2024
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 15, 2024
Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5928423
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1369011}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 18, 2024
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
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 18, 2024
…rt, a=testonly

Automatic update from web-platform-tests
Add ::check pseudo element parsing support

Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5928423
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1369011}

--

wpt-commits: 181e33be283f60d28349f6828782091489684ece
wpt-pr: 48625
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this pull request Oct 21, 2024
…rt, a=testonly

Automatic update from web-platform-tests
Add ::check pseudo element parsing support

Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5928423
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1369011}

--

wpt-commits: 181e33be283f60d28349f6828782091489684ece
wpt-pr: 48625
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 21, 2024
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
aarongable pushed a commit to chromium/chromium that referenced this pull request Oct 21, 2024
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
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925018
Reviewed-by: Joey Arhar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Reviewed-by: Kevin Babbitt <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1371648}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 21, 2024
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
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925018
Reviewed-by: Joey Arhar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Reviewed-by: Kevin Babbitt <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1371648}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 21, 2024
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
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925018
Reviewed-by: Joey Arhar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Reviewed-by: Kevin Babbitt <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1371648}
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Oct 22, 2024
…rt, a=testonly

Automatic update from web-platform-tests
Add ::check pseudo element parsing support

Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5928423
Reviewed-by: Rune Lillesveen <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1369011}

--

wpt-commits: 181e33be283f60d28349f6828782091489684ece
wpt-pr: 48625
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 22, 2024
…rt, a=testonly

Automatic update from web-platform-tests
Add ::check pseudo element parsing support

Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5928423
Reviewed-by: Rune Lillesveen <futharkchromium.org>
Reviewed-by: Joey Arhar <jarharchromium.org>
Commit-Queue: Traian Captan <tcaptanchromium.org>
Cr-Commit-Position: refs/heads/main{#1369011}

--

wpt-commits: 181e33be283f60d28349f6828782091489684ece
wpt-pr: 48625

UltraBlame original commit: e6b51178ca094586c892c9d2a6f69c62d6877aa0
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 22, 2024
…rt, a=testonly

Automatic update from web-platform-tests
Add ::check pseudo element parsing support

Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5928423
Reviewed-by: Rune Lillesveen <futharkchromium.org>
Reviewed-by: Joey Arhar <jarharchromium.org>
Commit-Queue: Traian Captan <tcaptanchromium.org>
Cr-Commit-Position: refs/heads/main{#1369011}

--

wpt-commits: 181e33be283f60d28349f6828782091489684ece
wpt-pr: 48625

UltraBlame original commit: e6b51178ca094586c892c9d2a6f69c62d6877aa0
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 22, 2024
…rt, a=testonly

Automatic update from web-platform-tests
Add ::check pseudo element parsing support

Defined in:
w3c/csswg-drafts#10986

Bug: 369319576
Change-Id: I90fb6ef81fd5941709fae6936c7474339a7715e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5928423
Reviewed-by: Rune Lillesveen <futharkchromium.org>
Reviewed-by: Joey Arhar <jarharchromium.org>
Commit-Queue: Traian Captan <tcaptanchromium.org>
Cr-Commit-Position: refs/heads/main{#1369011}

--

wpt-commits: 181e33be283f60d28349f6828782091489684ece
wpt-pr: 48625

UltraBlame original commit: e6b51178ca094586c892c9d2a6f69c62d6877aa0
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 23, 2024
Automatic update from web-platform-tests
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
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925018
Reviewed-by: Joey Arhar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Reviewed-by: Kevin Babbitt <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1371648}

--

wpt-commits: da9d7dba3fc527999aeda736950cd9c3270314f8
wpt-pr: 48697
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this pull request Oct 23, 2024
Automatic update from web-platform-tests
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
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925018
Reviewed-by: Joey Arhar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Reviewed-by: Kevin Babbitt <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1371648}

--

wpt-commits: da9d7dba3fc527999aeda736950cd9c3270314f8
wpt-pr: 48697
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Oct 24, 2024
Automatic update from web-platform-tests
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
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925018
Reviewed-by: Joey Arhar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Commit-Queue: Traian Captan <[email protected]>
Reviewed-by: Kevin Babbitt <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1371648}

--

wpt-commits: da9d7dba3fc527999aeda736950cd9c3270314f8
wpt-pr: 48697
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 29, 2024
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}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 29, 2024
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}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 30, 2024
…g 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
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Oct 31, 2024
…g 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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Nov 1, 2024
…g 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 <tcaptanchromium.org>
Reviewed-by: Joey Arhar <jarharchromium.org>
Reviewed-by: Kevin Babbitt <kbabbittmicrosoft.com>
Cr-Commit-Position: refs/heads/main{#1375343}

--

wpt-commits: 2becea8aa06af9b51bb319f001aa880906fb26ec
wpt-pr: 48861

UltraBlame original commit: 2653a07709c1a504480fe822fbd193c72ee7d62e
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Nov 1, 2024
…g 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 <tcaptanchromium.org>
Reviewed-by: Joey Arhar <jarharchromium.org>
Reviewed-by: Kevin Babbitt <kbabbittmicrosoft.com>
Cr-Commit-Position: refs/heads/main{#1375343}

--

wpt-commits: 2becea8aa06af9b51bb319f001aa880906fb26ec
wpt-pr: 48861

UltraBlame original commit: 2653a07709c1a504480fe822fbd193c72ee7d62e
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Nov 1, 2024
…g 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 <tcaptanchromium.org>
Reviewed-by: Joey Arhar <jarharchromium.org>
Reviewed-by: Kevin Babbitt <kbabbittmicrosoft.com>
Cr-Commit-Position: refs/heads/main{#1375343}

--

wpt-commits: 2becea8aa06af9b51bb319f001aa880906fb26ec
wpt-pr: 48861

UltraBlame original commit: 2653a07709c1a504480fe822fbd193c72ee7d62e
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request Nov 1, 2024
…g 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
@tabatkins
Copy link
Member

tabatkins commented Nov 21, 2024

Per the resolutions from this week's call, these should be renamed to ::checkmark and ::picker-icon.

Also, I thought from the discussion in the call that ::checkmark was meant to reflect the check in a checkbox/radio as well, but this currently defines it to only exist on option elements. I presume this is just old text that doesn't reflect more recent discussion? Similarly, I was under the impression that ::picker-icon would apply to several input types as well, not just select.

@josepharhar
Copy link
Contributor Author

Also, I thought from the discussion in the call that ::checkmark was meant to reflect the check in a checkbox/radio as well, but this currently defines it to only exist on option elements. I presume this is just old text that doesn't reflect more recent discussion? Similarly, I was under the impression that ::picker-icon would apply to several input types as well, not just select.

Yes people were talking about where else these pseudos could be used in order to get better names so they could be used for more things than select and options.

I'm not exactly sure what all the cases these pseudos will be used in yet because I only have a full definition/implementation of base appearance for select and not for all the other form controls.

I changed the definition for ::picker-icon which elements to match to be more vague/generic to support other future elements.

I changed the definition of ::checkmark to apply to anything which supports :checked and has base appearance.

@tabatkins
Copy link
Member

Ah, k, if that talk about other usage sites was somewhat theoretical, and they'll be handled in a different PR (if at all), then that's fine. I was just a little confused.

@tabatkins tabatkins merged commit dbde8fa into w3c:main Nov 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[css-ui] Pseudo-elements for checkmark and dropdown icon for appearance:base <select>
5 participants