You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the CSS property formatter or as a CSS-specific value transform (I prefer the latter, format should not be concerned much with token value changes).
:root {
--my-math:15px+20px;
}
This is invalid CSS, but would be valid if wrapped inside CSS calc() statement. This can be done for any expression using * / + - characters.
Important to note is that whatever we do to regex match such tokens is that there must be spaces around the + and - math operators, see https://developer.mozilla.org/en-US/docs/Web/CSS/calc#notes
Feature Request
For the CSS property formatter or as a CSS-specific value transform (I prefer the latter, format should not be concerned much with token value changes).
This is invalid CSS, but would be valid if wrapped inside CSS calc() statement. This can be done for any expression using
* / + -
characters.Important to note is that whatever we do to regex match such tokens is that there must be spaces around the
+
and-
math operators, see https://developer.mozilla.org/en-US/docs/Web/CSS/calc#notesOutput will then be:
Should probably also support CSS custom props:
The text was updated successfully, but these errors were encountered: