-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser bug #63
Comments
Quote from https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties
|
I created a test case with your example, where I am reading and re-emitting the file. The output is body {
--a:red;
background-color:var(--A);
} so that looks good to me. |
I apparently did not explain the problem well. You quoted above that variable names are And as a result, you get what you brought in the tests - |
Input: body {
--A:red;
background-color:var(--A);
} Output: body {
--a:red;
background-color:var(--A);
}
|
@Panthevm thanks for the clarification - now I understand. Will keep you posted |
Found and resolved. Will be part of the 6.2.4 release. Do you have any other issue in the pipeline or can I start building a release? |
There are no other problems. Many thanks! |
When forming a
CSSDeclaration
, the.getProperty
is always formed in lowercase.This error is critical when we are dealing with variables.
--A != --a
And when call
.getExpressionAsCSSString
, the case is respected, as a result, we lose the relationshipReproducing an error: https://jsfiddle.net/dauhk27r/
The text was updated successfully, but these errors were encountered: