ExCSS icon indicating copy to clipboard operation
ExCSS copied to clipboard

Font size rule doesn't allow functions

Open robozdog opened this issue 3 years ago • 3 comments

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

robozdog avatar Sep 20 '22 06:09 robozdog

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

TylerBrinks avatar Sep 20 '22 13:09 TylerBrinks

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

colindcli avatar Sep 29 '22 03:09 colindcli

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.

TylerBrinks avatar Sep 29 '22 04:09 TylerBrinks