From 906d28881d2c3cc1f5a49f00b8b697df66a5baa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paolo=20Bo=C5=BEac?= Date: Thu, 9 Nov 2023 05:20:51 +0100 Subject: [PATCH] Add some missing simple pseudo selectors (#1207) --- .changeset/new-kangaroos-punch.md | 7 +++++++ packages/css/src/simplePseudos.ts | 30 +++++++++++++++++++++++++++--- 2 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .changeset/new-kangaroos-punch.md diff --git a/.changeset/new-kangaroos-punch.md b/.changeset/new-kangaroos-punch.md new file mode 100644 index 000000000..26b57bb54 --- /dev/null +++ b/.changeset/new-kangaroos-punch.md @@ -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 diff --git a/packages/css/src/simplePseudos.ts b/packages/css/src/simplePseudos.ts index 60490cdbb..14fc0f467 100644 --- a/packages/css/src/simplePseudos.ts +++ b/packages/css/src/simplePseudos.ts @@ -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, @@ -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, @@ -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, @@ -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,