17 Commits

Author SHA1 Message Date
connorskees
65c1a9e833 improve code coverage, handle more builtin fn edge cases 2023-01-03 04:33:56 +00:00
Connor Skees
743ad7a340 increase code coverage 2022-12-28 21:42:58 -05:00
Connor Skees
6322bae14c increase code coverage 2022-12-26 18:45:09 -05:00
Connor Skees
ffaee04613
rewrite parsing, evaluation, and serialization (#67)
Adds support for the indented syntax, plain CSS imports, `@forward`, and many other previously missing features.
2022-12-26 15:33:04 -05:00
Connor Skees
c6cb7c1d68 support special fn clamp 2021-07-30 05:57:13 -04:00
Connor Skees
884b92f476 remove test macro shorthand for unchanged output 2020-11-20 04:34:36 -05:00
Midas Lambrichts
8e060950d5
Fix panic when progid is the last token by removing unwrap (#39)
* Fix panic when progid by removing unwrap

* Incorporate PR feedback
2020-08-24 19:35:55 -04:00
Connor Skees
ff52e56600 test for single hash to calc and url 2020-08-19 03:49:12 -04:00
Connor Skees
9548eb6deb convert single quotes to double quotes in calc 2020-08-17 04:48:11 -04:00
Connor Skees
7acaa94870 better handle strings passed to special css functions 2020-08-17 04:35:00 -04:00
Connor Skees
a665cb13cc remove cfg(test) from test files 2020-08-11 20:22:24 -04:00
Connor Skees
6189810ced allow vendor prefixed special css functions 2020-08-02 14:52:46 -04:00
ConnorSkees
5b69ad2659 special functions are always lowercased 2020-05-13 00:16:36 -04:00
ConnorSkees
f8ab03a94f test invalid arithmetic in calc 2020-04-21 04:28:23 -04:00
ConnorSkees
716cb49991 test for newlines in special functions 2020-04-20 15:16:05 -04:00
ConnorSkees
3e9e860e20 allow slient comments in special function args 2020-04-20 15:11:03 -04:00
ConnorSkees
7e793392a7 handle special functions calc, element, expression, and progid 2020-04-06 19:26:47 -04:00