41 Commits

Author SHA1 Message Date
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
588fa61140 fix #469: treat package paths in css as relative 2020-10-18 21:54:19 -07:00
Evan Wallace
a8f974f575 implement hsl to rgb 2020-09-30 20:50:35 -07:00
Evan Wallace
6d94ed64d2 simplify code for hex colors 2020-09-30 20:11:12 -07:00
Evan Wallace
9f40a9545c parse css colors before minifying 2020-09-30 00:54:26 -07:00
Evan Wallace
25afa74c36 lower css color syntax for older browsers 2020-09-30 00:10:15 -07:00
Evan Wallace
885ade013f replace names with hex colors when shorter 2020-09-30 00:09:39 -07:00
Evan Wallace
e48b660825 replace hex colors with names when shorter 2020-09-29 22:24:36 -07:00
Evan Wallace
2ba28c6729 minify some css colors 2020-09-29 22:03:28 -07:00
Evan Wallace
3a145aed67 start work on number mangling in css 2020-09-29 03:31:13 -07:00
Evan Wallace
799db9bd51 improve error recovery for invalid syntax 2020-09-29 01:59:53 -07:00
Evan Wallace
048712630f turn recoverable css errors into warnings 2020-09-29 01:17:31 -07:00
Evan Wallace
5b0f385394 warn about unsupported at-rules 2020-09-29 01:00:02 -07:00
Evan Wallace
33bfa8e281 avoid warning messages in tests 2020-09-29 00:39:05 -07:00
Evan Wallace
251cdf93bc add support for "@page" 2020-09-29 00:32:21 -07:00
Evan Wallace
15425559d2 certain urls are automatically external in css 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
13a21ba2f1 better error recovery for "@keyframes" 2020-09-28 21:06:34 -07:00
Evan Wallace
4dfceab5c4 mangle "from" and "to" in "@keyframes" rules 2020-09-28 20:39:00 -07:00
Evan Wallace
963f0f1347 remove unused file contents in css printer 2020-09-28 20:24:05 -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
7b878e1b38 warn about charsets other than "UTF-8" 2020-09-27 00:17:52 -07:00
Evan Wallace
5382eb3307 comments for css code 2020-09-26 19:50:27 -07:00
Evan Wallace
27796e8f19 extract path range inside url token 2020-09-26 18:22:58 -07:00
Evan Wallace
f4f08f37d2 get basic css bundling working 2020-09-26 18:22:58 -07:00
Evan Wallace
a551bee1a6 better error message for trailing semicolon 2020-09-26 18:22:58 -07:00
Evan Wallace
eee9be7275 add import records to css 2020-09-26 18:22:58 -07:00
Evan Wallace
489dce747e fix infinite loop due to invalid qualified rule 2020-09-26 18:22:58 -07:00
Evan Wallace
2863537ce5 add support for "@font-face" 2020-09-26 18:22:58 -07:00
Evan Wallace
89dcc62d1e add css loader to browser repl 2020-09-26 18:22:58 -07:00
Evan Wallace
9216358c19 recover from incorrect comments in 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