39 Commits

Author SHA1 Message Date
Evan Wallace
491dd50770 css empty rule removal should happen in parser 2021-03-12 00:50:30 -08:00
Evan Wallace
a33449bba6 initial support for conditional css imports (#953) 2021-03-11 10:11:21 -08:00
Evan Wallace
7817a19c3c remove support for "@namespace" 2021-02-25 15:03:17 -08:00
Evan Wallace
eeccc77fd0 css: pretty-print long lists in declarations 2021-02-21 13:52:09 -08:00
Evan Wallace
36029e11f4 css printer: make options explicit 2021-02-21 13:35:40 -08:00
Evan Wallace
d496dcf4e5 fixes after landing css change 2021-02-21 02:29:55 -08:00
susiwen8
ba901e07b9 Fix: css empty rulesets should be removed (#851) 2021-02-21 02:03:09 -08:00
Evan Wallace
15eeefa50b fix #804: minify of ".0" in css 2021-02-13 11:10:27 -08:00
Evan Wallace
dbc35ad6d7 small fixes for css minification 2021-02-07 18:46:58 -08:00
Evan Wallace
24f23055b3 fix #760: verbatim whitespace for css variables 2021-02-07 18:29:05 -08:00
Evan Wallace
1bfd135dbe logger: "Stderr" => "Output" 2020-12-30 21:04:44 -08:00
Evan Wallace
c5f71e05e7 css parser: use separate options object 2020-11-18 18:38:30 -08:00
Evan Wallace
c500b9e843 change "THashID" to a flag 2020-11-14 13:59:58 -08:00
Evan Wallace
5200e9a820 fix #485: always escape U+FEFF to make IE happy 2020-10-24 20:14:13 -07:00
Evan Wallace
da972afbbb add tests for various strange css inputs 2020-10-24 05:14:05 -07:00
Evan Wallace
b5fabe99e7 fix #70: implement the "--ascii-only" flag 2020-10-24 05:14:02 -07:00
Evan Wallace
694e2cc83d improve handling of escape sequences in css tokens 2020-10-24 03:08:09 -07:00
Evan Wallace
2ba28c6729 minify some css colors 2020-09-29 22:03:28 -07:00
Evan Wallace
799db9bd51 improve error recovery for invalid syntax 2020-09-29 01:59:53 -07:00
Evan Wallace
0243998bed fix formatting of unknown rules 2020-09-29 01:34:52 -07:00
Evan Wallace
33bfa8e281 avoid warning messages in tests 2020-09-29 00:39:05 -07:00
Evan Wallace
9a0958fdcc add a test for "@font-face" 2020-09-29 00:32:21 -07:00
Evan Wallace
251cdf93bc add support for "@page" 2020-09-29 00:32:21 -07:00
Evan Wallace
74b71cf226 fix #415: extract paths from css url tokens 2020-09-29 00:32:08 -07:00
Evan Wallace
d10cb700b4 decode and re-encode css strings 2020-09-28 22:50:45 -07:00
Evan Wallace
4dfceab5c4 mangle "from" and "to" in "@keyframes" rules 2020-09-28 20:39:00 -07:00
Evan Wallace
738a66e2d6 test coverage for "-ms-grid-columns" whitespace 2020-09-28 20:30:11 -07:00
Evan Wallace
963f0f1347 remove unused file contents in css printer 2020-09-28 20:24:05 -07:00
Evan Wallace
a0feb6e1ef adjust whitespace before known at-rule blocks 2020-09-28 20:01:36 -07:00
Evan Wallace
67543530e4 special-case whitespace around commas in css 2020-09-28 19:56:44 -07:00
Evan Wallace
5692754de3 modify formatting of unknown at rules 2020-09-28 19:42:38 -07:00
Evan Wallace
6da1e88005 change the token representation in the css ast 2020-09-28 19:32:11 -07:00
Evan Wallace
4ae5ca0772 special parsing for "@keyframes" rules 2020-09-28 17:51:46 -07:00
Evan Wallace
5382eb3307 comments for css code 2020-09-26 19:50:27 -07:00
Evan Wallace
eee9be7275 add import records to css 2020-09-26 18:22:58 -07:00
Evan Wallace
316804b68f @charset and @namespace 2020-09-26 18:22:58 -07:00
Evan Wallace
02f5e2e681 add css printer tests 2020-09-26 18:22:58 -07:00
Evan Wallace
30609b6138 add css parser tests 2020-09-26 18:22:58 -07:00
Evan Wallace
99bafd0d45 add an initial css lexer+parser+printer (#20) 2020-09-12 16:18:18 -07:00