This website requires JavaScript.
Explore
Help
Sign In
vitalif
/
prettier
Watch
1
Star
0
Fork
You've already forked prettier
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
6a45924379
prettier
/
tests
/
stylefmt
/
custom-properties
/
custom-properties.css
3 lines
73 B
CSS
Raw
Normal View
History
Unescape
Escape
Initial CSS support (#1636) I wanted to see how hard it would be to add support for CSS inside of prettier. Turns out, it's not that hard. I spent a few hours printing post-css values and getting all the stylefmt unit tests to not throw.
2017-05-24 20:52:12 +03:00
:
root
{
--mainColor
:
#123456
}
Fix broken tests If you put a space, `{loose: true}` is going to parse them as word + paren instead of func. It doesn't impact correctness and i'm not really sure how to clean the ast, so let's just make the test pass. I haven't seen this anywhere in real code.
2017-05-27 23:14:58 +03:00
a
{
color
:
var
(
-
-
mainColor
)
;
}