stylex
stylex copied to clipboard
stylex.firstThatWorks() not correctly linted
Describe the issue
Expected behavior
No eslint error.
Steps to reproduce
Take the example in the doc:
https://stylexjs.com/docs/api/javascript/firstThatWorks/
import * as stylex from '@stylexjs/stylex';
const styles = stylex.create({
header: {
position: stylex.firstThatWorks('sticky', '-webkit-sticky', 'fixed'),
},
});
Test case
No response
Additional comments
No response
We probably wouldn't allow vendor prefixed values in source code, and instead rely on polyfills
I intend to use this as a default fallback for a css variable: https://github.com/facebook/stylex/issues/432
Does this issue reproduce with a variable instead then? Give the code you shared, the lint message looks correct to me