Skip to content

Incorrect values when units are not in lowercase #5

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

Closed
moretti opened this issue Oct 7, 2015 · 4 comments
Closed

Incorrect values when units are not in lowercase #5

moretti opened this issue Oct 7, 2015 · 4 comments

Comments

@moretti
Copy link

moretti commented Oct 7, 2015

For example calc(50% - 42Px) is translated to calc(0.5 - 42Px)

(We declare some units in capital case in conjunction with postcss-pxtorem)

@MoOx
Copy link
Owner

MoOx commented Oct 7, 2015

Is this valid per css specs ?

@moretti
Copy link
Author

moretti commented Oct 7, 2015

Yes, it is. From http://www.w3.org/TR/CSS21/syndata.html:

All CSS syntax is case-insensitive within the ASCII range (i.e., [a-z] and [A-Z] are equivalent), except for parts that are not under the control of CSS. For example, the case-sensitivity of values of the HTML attributes "id" and "class", of font names, and of URIs lies outside the scope of this specification. Note in particular that element names are case-insensitive in HTML, but case-sensitive in XML.

@MoOx
Copy link
Owner

MoOx commented Oct 8, 2015

So PR is welcome =)

@MoOx
Copy link
Owner

MoOx commented Feb 22, 2016

Closed by f881251

@MoOx MoOx closed this as completed Feb 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants