Closed sandrojohanides closed 5 years ago
@braver There seems to be a regression here and it now looks exactly the same as the screenshot.
Edit, also this happened:
.test {
transform: rotate(0);
}
I would expect it to be red.
The CSS syntax will also not highlight the 0
. For the 0
the deg
unit is optional according to MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/angle. I'll open a PR for the CSS package and fix it here.
That might be not related to the original regression tho, where even 0em
is blue.
Oh, damn, sorry. I guess I didn't have good tests for this. The CSS syntax doesn't support defaults for var()
and I copied their stuff back in when I was refactoring.
Ok, I had a closer look. Default values are "declaration values", ie. they can be anything, and what they are will only be evaluated runtime. I'm not 100% sure what to do here, but I'll propose something for the CSS package and will follow whatever happens there.
Please follow https://github.com/sublimehq/Packages/issues/1797 for this. If any conclusion is reached there, Sass will follow.
Thank you!
calc()
doesn’t seem to matter in this case, values such as0
or0em
are not of correct color.