stylex
stylex copied to clipboard
Invalid pseudo or at-rule
I'm trying to add multiple Pseudo Selectors with not selectors, nesting dosen't work either. Get error message 'Invalid pseudo or at-rule'
visuallyHidden: {
borderWidth: { ':not(:focus):not(:active)': 0 },
clip: { ':not(:focus):not(:active)': 'rect(0 0 0 0)' },
height: { ':not(:focus):not(:active)': 'auto' },
margin: { ':not(:focus):not(:active)': 0 },
overflow: { ':not(:focus):not(:active)': 'hidden' },
padding: { ':not(:focus):not(:active)': 0 },
position: { ':not(:focus):not(:active)': 'absolute' },
whiteSpace: { ':not(:focus):not(:active)': 'nowrap' },
width: { 'not(:focus):not(:active)': '1px' },
},
Environment (include versions). Did this work in previous versions? latest stylex