shellscape/postcss-values-parser

Exception thrown on float angle values

Closed this issue · 4 comments

lazd commented
  • Operating System (or Browser): macOS
  • Node Version: v13.3.0
  • postcss-values-parser Version: 3.11

How Do We Reproduce?

https://repl.it/@lazd/postcss-values-parser-float-angle-values

Expected Behavior

parse(.5deg) and parse(1.5deg) and friends do not throw. See [W3 spec] for all possible angle values https://www.w3.org/TR/css-values-4/#angles.

Actual Behavior

parse(.5deg) and parse(1.5deg) throw <css input>:1:1: Unknown word

lazd commented

Related to #76. Big ups to @bartveneman for the repl.it that made it easy to demonstrate the issue.

nex3 commented

See also #104.

Fixed in #109

Wow, thanks so much @jonathantneal for implementing! 🥳