Skip to content
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

calc function #56

Open
Nicasso opened this issue Apr 6, 2016 · 3 comments
Open

calc function #56

Nicasso opened this issue Apr 6, 2016 · 3 comments

Comments

@Nicasso
Copy link

Nicasso commented Apr 6, 2016

Hello,

I don't know if it is a bug or that the calc function is just not supported yet. But the calcfunction is not being parsed, if it is used, the whole rule set is ignored. It looks like it is the only function which is not working since functions like linear-gradient do work correct.

So this whole ruleset will be ignored.
.background2 { width: calc(100% - 100px); background: linear-gradient(red,yellow,blue); }

And this one will work.
.background2 { background: linear-gradient(red,yellow,blue); }

Regards,
Nico

@Nicasso
Copy link
Author

Nicasso commented Apr 7, 2016

Same goes for the alpha function.

  filter: alpha(opacity=60);

This declaration will be ignored.

@radkovo
Copy link
Owner

radkovo commented Apr 7, 2016

Unfortunately, calc() is not supported yet and for the first look, it will require quite significant modifications in the value processing, since it can actually produce different value types (lengths, angles, integers, etc.) The filter: property would be probably easier to implement; however it seems to be quite an experimental technology at the moment.

@radkovo
Copy link
Owner

radkovo commented Mar 29, 2017

I know it has been a long time but finally, there is now an experimental support for calc() added in the master branch.

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