stylex icon indicating copy to clipboard operation
stylex copied to clipboard

Eslint plugin doesn't recognize vendor prefixed property `-webkit-backdrop-filter`

Open QingqiShi opened this issue 2 years ago • 2 comments

Describe the issue

WebkitBackdropFilter is not recognized by the eslint plugin.

image

Expected behavior

WebkitBackdropFilter should be supported just like the other vendor prefixed properties such as WebkitBackdropAppearance

Steps to reproduce

Using @stylexjs/[email protected].

Test case

import stylex from'stylex';
export styles = stylex.create({
  root: {
    WebkitBackdropFilter: 'blur(10px)',
  }
});

Additional comments

No response

QingqiShi avatar Jan 27 '24 18:01 QingqiShi

Supress the lint error for now. I'm working on enabling something on the lines of Autoprefixr so you won't have to use vendor-prefixed properties.

nmn avatar Jan 28 '24 10:01 nmn

Oh yeah that would be a much better solution. I imagine preferablly you'd respect something like a browserlist to determine if a vendor prefix is required. Will close my PR.

QingqiShi avatar Jan 28 '24 12:01 QingqiShi