-
Limit of Stylelint's
declaration-property-value-no-unknown
↩SCSS Variables Dollar Variables in PostCSS Native CSS Variables: Dangling transform functions that the rule would otherwise catch are ignored Note:
It is technically possible to make the rule work with these variables by playing with the rule's secondary option, that is, by providing a regex to
ignoreProperties.transform
to describe a new acceptable property value pattern fortransform
that accounts for the use of variables.But constructing such regex is not trivial, as
transform
takes value in a wide range of forms, ranging from non-functional keywords, likenone
andinitial
, to more than a dozen transform functions that take varying number of arguments (considermatrix3d()
, specified with 16 values, andtranslateX()
, which accepts only one), and the combination of any number of these functions.