Skip to content
Merged
Prev Previous commit
Next Next commit
feat: add all form-related pseudo-elements and classes
This also moves `::picker-icon` and `::picker()` from pseudo-classes to pseudo-elements.
  • Loading branch information
tyrann0us committed Jun 17, 2025
commit af71d1f7bf0866a11e44fb7dfffa71cd73492ffe
31 changes: 23 additions & 8 deletions lib/reference/selectors.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 17 additions & 2 deletions lib/reference/selectors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,33 @@ export const pseudoElements = uniteSets(
deprecatedPseudoElements,
[
'backdrop',
'checkmark',
'clear-icon',
'color-swatch',
'content',
'cue',
'details-content',
'field-component',
'field-separator',
'field-text',
'file-selector-button',
'grammar-error',
'highlight',
'marker',
'picker-icon',
'picker()',
'placeholder',
'scroll-marker-group',
'scroll-marker',
'selection',
'slider-fill',
'slider-thumb',
'slider-track',
'slotted',
'spelling-error',
'step-control',
'step-down',
'step-up',
'target-text',
'view-transition-group',
'view-transition-image-pair',
Expand Down Expand Up @@ -396,6 +410,7 @@ export const pseudoClasses = uniteSets(
'fullscreen',
'future',
'has-slotted',
'high-value',
'host-context',
'host',
'hover',
Expand All @@ -405,15 +420,15 @@ export const pseudoClasses = uniteSets(
'last-child',
'last-of-type',
'link',
'low-value',
'modal',
'only-child',
'only-of-type',
'open',
'optimal-value',
'optional',
'out-of-range',
'past',
'picker-icon',
'picker',
'picture-in-picture',
'placeholder-shown',
'popover-open',
Expand Down