Skip to content

Commit

Permalink
Add some missing simple pseudo selectors (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
CroModder authored Nov 9, 2023
1 parent c446b5e commit 906d288
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/new-kangaroos-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@vanilla-extract/css": feat
---

Add some missing [simple pseudo selectors]

[simple pseudo selectors]: https://vanilla-extract.style/documentation/styling/#simple-pseudo-selectors
30 changes: 27 additions & 3 deletions packages/css/src/simplePseudos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,25 @@ const simplePseudoMap = {
':-ms-input-placeholder': true,
':-webkit-any-link': true,
':-webkit-full-screen': true,
'::-moz-color-swatch': true,
'::-moz-list-bullet': true,
'::-moz-list-number': true,
'::-moz-page-sequence': true,
'::-moz-page': true,
'::-moz-placeholder': true,
'::-moz-progress-bar': true,
'::-moz-range-progress': true,
'::-moz-range-thumb': true,
'::-moz-range-track': true,
'::-moz-scrolled-page-sequence': true,
'::-moz-selection': true,
'::-ms-backdrop': true,
'::-ms-browse': true,
'::-ms-check': true,
'::-ms-clear': true,
'::-ms-fill': true,
'::-ms-fill-lower': true,
'::-ms-fill-upper': true,
'::-ms-fill': true,
'::-ms-reveal': true,
'::-ms-thumb': true,
'::-ms-ticks-after': true,
Expand All @@ -29,8 +35,16 @@ const simplePseudoMap = {
'::-ms-track': true,
'::-ms-value': true,
'::-webkit-backdrop': true,
'::-webkit-inner-spin-button': true,
'::-webkit-input-placeholder': true,
'::-webkit-meter-bar': true,
'::-webkit-meter-even-less-good-value': true,
'::-webkit-meter-inner-element': true,
'::-webkit-meter-optimum-value': true,
'::-webkit-meter-suboptimum-value': true,
'::-webkit-outer-spin-button': true,
'::-webkit-progress-bar': true,
'::-webkit-progress-inner-element': true,
'::-webkit-progress-inner-value': true,
'::-webkit-progress-value': true,
'::-webkit-resizer': true,
Expand All @@ -40,18 +54,28 @@ const simplePseudoMap = {
'::-webkit-scrollbar-track-piece': true,
'::-webkit-scrollbar-track': true,
'::-webkit-scrollbar': true,
'::-webkit-search-cancel-button': true,
'::-webkit-search-results-button': true,
'::-webkit-slider-runnable-track': true,
'::-webkit-slider-thumb': true,
'::after': true,
'::backdrop': true,
'::before': true,
'::cue': true,
'::file-selector-button': true,
'::first-letter': true,
'::first-line': true,
'::grammar-error': true,
'::marker': true,
'::placeholder': true,
'::selection': true,
'::spelling-error': true,
'::target-text': true,
'::view-transition-group': true,
'::view-transition-image-pair': true,
'::view-transition-new': true,
'::view-transition-old': true,
'::view-transition': true,
':active': true,
':after': true,
':any-link': true,
Expand All @@ -63,14 +87,14 @@ const simplePseudoMap = {
':disabled': true,
':empty': true,
':enabled': true,
':first': true,
':first-child': true,
':first-letter': true,
':first-line': true,
':first-of-type': true,
':focus': true,
':first': true,
':focus-visible': true,
':focus-within': true,
':focus': true,
':fullscreen': true,
':hover': true,
':in-range': true,
Expand Down

0 comments on commit 906d288

Please sign in to comment.