anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.24k stars 51 forks source link

False positives when using css variables #82

Closed ismay closed 1 year ago

ismay commented 6 years ago

Variables that match css declarations are being incorrectly interpreted as those declarations and not as variables. See here for further discussion on where exactly it's going wrong.

clshortfuse commented 1 year ago

Original issue sites:

.class {
  width:rem-calc(20px);
}

Passing scss directly into doiuse isn't really supported, nor should it be. scss is a preprocessor. Whatever rem-calc does in SCSS should transform into css before landing in doiuse.

Also, this isn't really CSS variables (which are different thing). This seems like custom CSS functions which aren't part of any spec. We can explore that later if that ever happens.