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

Font size rule doesn't allow functions #139

Open
robozdog opened this issue Sep 20, 2022 · 3 comments
Open

Font size rule doesn't allow functions #139

robozdog opened this issue Sep 20, 2022 · 3 comments

Comments

@robozdog
Copy link

Font size rule and possibly another rules does not support functions.
I'm trying to do following style:
font-size: clamp(100%, 1rem + 2vw, 60px);
But this does not work, style will be empty

@TylerBrinks
Copy link
Owner

TylerBrinks commented Sep 20, 2022

clamp is a css4 function. This library only supports css3 specs currently.

@colindcli
Copy link

Why are there so many fatal bugs (infinite loops) and unimplemented rules in the V5 version, the project has not been maintained. . .

@TylerBrinks
Copy link
Owner

There is no version 5. This library supports CSS3; the function you’re using is not compliant with the CSS 3 spec.

Pull requests are welcome but we have day jobs. The project is maintained but has no outstanding need to adopt forward standards with the current architecture. Future versions will use a different lexer and parser that are DSL appropriate.

As for fatal errors as you put it, to use a library outside of its intended purpose without your own error handling is nonsensical. Again, feel free to contribute with a pull request. Otherwise sideline criticism is useless and generally disregarded.

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

3 participants