Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CSS units being stripped from variables #322

Open
solomax opened this issue Mar 21, 2019 · 3 comments
Open

CSS units being stripped from variables #322

solomax opened this issue Mar 21, 2019 · 3 comments

Comments

@solomax
Copy link

solomax commented Mar 21, 2019

CSS variables like
--lbl-height: 0px;

are being transformed to --lbl-height:0;
which break further calculations

Would appreciate any workaround for this (already tried to add space characters, to use 0.0px, no luck :((( )

looks related to #232 and #108

@solomax
Copy link
Author

solomax commented Mar 21, 2019

0ch seems to be workaround
maybe it worth to add some flag to disable unit stripping?

@Chris2011
Copy link

For 0 there shouldn't be a problem in CSS, because 0 is 0, doesn't matter em or px or whatever. But yes if you want to use 1.0em it will be stripped as mentioned in the other tickets.

@solomax
Copy link
Author

solomax commented Mar 29, 2019

@Chris2011 unfortunately you are wrong :(
Here is the fiddle https://jsfiddle.net/solomax666/0m6wavyp/ demonstrating 0 is NOT 0 :(((

As you can see red box height is not equals to other boxes ....

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants