Commit Graph

96 Commits

Author SHA1 Message Date
Alexander Akait
30cd29b0f0
fix(css/parser): Fix parsing of ; in values (#3821) 2022-03-02 15:51:52 +00:00
Alexander Akait
7ba5861a33
fix(css/codegen): Fix codegen of preserved tokens (#3819) 2022-03-02 15:17:17 +00:00
Alexander Akait
f969f8c5f5
feat(css/parser): Improve error recovery (#3810) 2022-03-02 05:27:16 +00:00
Alexander Akait
3ec45a6858
feat(css/ast): Union Value and ComponentValue (#3804) 2022-03-01 15:26:17 +00:00
Alexander Akait
189707a1fd
test(css/parser): Add css files for material design (#3777) 2022-02-28 21:17:50 +09:00
Alexander Akait
1651bccf45
test(css/parser): Add tests for selectors (#3770)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-02-28 08:26:23 +00:00
Alexander Akait
815a489dcf
refactor(css/ast): Simplify AST types (#3753) 2022-02-27 14:52:32 +00:00
Pig Fang
9f90882b27
test(css/parser): Add malformed hex color tests (#3762) 2022-02-27 07:16:35 +00:00
Alexander Akait
91cf965e07
feat(css/ast): Improve type definitions for unicode ranges (#3757) 2022-02-27 14:16:22 +09:00
Alexander Akait
f258ee4729
fix(css): Fix processing of integers (#3752) 2022-02-26 13:51:59 +00:00
Alexander Akait
9b92eba636
feat(css/ast): Allow more syntax for @supports at-rule (#3740) 2022-02-25 18:01:38 +00:00
Alexander Akait
f5c5e77612
feat(css/ast): Support more selectors (#3729) 2022-02-25 02:05:12 +00:00
Alexander Akait
321ee756d9
refactor(css/ast): Fix the type definitions for an plus b syntax (#3682) 2022-02-23 16:20:40 +00:00
Alexander Akait
003a7b85a4
feat(css/ast): Improve parsing of colors (#3680) 2022-02-22 19:45:33 +00:00
Alexander Akait
fab6473183
feat(css/minifier): Compress urls (#3666) 2022-02-22 11:44:24 +00:00
Alexander Akait
8271566d21
feat(css/codegen): Improve minification of selectors (#3624) 2022-02-19 01:27:32 +09:00
Alexander Akait
b7dcccc748
fix(css/parser): Fix parsing of component values (#3611) 2022-02-17 14:20:17 +00:00
Alexander Akait
5420bccc59
fix(css): Fix recovery mode for functions (#3600) 2022-02-17 13:36:50 +09:00
Alexander Akait
a20ed34e6b
feat(css/ast): Use SimpleBlock for @keyframes (#3577) 2022-02-16 13:49:00 +00:00
Alexander Akait
e97074b6c3
feat(css/ast): Use SimpleBlock in more places (#3575) 2022-02-16 12:40:16 +09:00
Alexander Akait
3399702b73
feat(css/ast): Use SimpleBlock for @document at-rule (#3564) 2022-02-15 03:33:54 +00:00
Alexander Akait
aed622be2f
refactor(css/ast): Rename tokens to match spec (#3553) 2022-02-14 13:05:16 +00:00
Alexander Akait
d5aee470cb
refactor(css/parser): Remove parse_values, which is not used (#3552) 2022-02-14 08:34:26 +00:00
Alexander Akait
f252dfb885
test(css/parser): Add a test for a custom function name (#3554) 2022-02-14 07:32:07 +00:00
Alexander Akait
b311aced89
feat(css/ast): Use correct type for calc (#3549) 2022-02-14 06:19:02 +00:00
Alexander Akait
da36e90d1e
feat(css/ast): Add ; to delimiters (#3551) 2022-02-14 01:00:38 +09:00
Alexander Akait
547eba5e31
feat(css/parser): Implement more error recovery (#3534) 2022-02-12 15:57:44 +09:00
Alexander Akait
cfb2248a2e
fix(css/ast): Use SimpleBlock in more types (#3535) 2022-02-12 14:28:00 +09:00
Alexander Akait
fcbc2ff03f
feat(css/parser): Implement more parser logic for nth selectors (#3532) 2022-02-11 14:07:08 +00:00
Alexander Akait
37c49e876c
refactor(css/ast): Unify SimpleBlock and Block completely (#3531) 2022-02-11 22:31:51 +09:00
Alexander Akait
57f6a581fa
refactor(css/ast): Unify SimpleBlock and Block (#3519) 2022-02-11 03:58:26 +00:00
Alexander Akait
92a3cb9609
refactor(css/ast): Remove Tokens in favor of Vec<TokenAndSpan> (#3507) 2022-02-10 11:25:19 +00:00
Alexander Akait
4e124c7bca
refactor(css/parser): Refactor codes related to simple blocks (#3506) 2022-02-10 13:54:46 +09:00
Alexander Akait
8b438ea024
test(css/parser): Add some tests from postcss (#3501) 2022-02-09 14:41:28 +00:00
Alexander Akait
cbe302b99d
feat(css): Support urange syntax (#3491) 2022-02-09 12:23:14 +00:00
Alexander Akait
460f846934
refactor(css/ast): Rename types to match specification (#3484) 2022-02-09 19:43:15 +09:00
Donny/강동윤
9b76783281
refactor(common): Cleanup & rustfmt (#3495)
swc_common:
 - Merge identical source codes.

swc_css_parser:
 - Deny `clippy::all`.
 - Fix lints.
2022-02-09 06:33:32 +00:00
Alexander Akait
48e5b903e2
feat(css/parser): Improve error recovery (#3486) 2022-02-09 03:49:59 +00:00
Alexander Akait
04782ae9f7
test(css/parser): Add tests from postcss (#3488) 2022-02-09 03:25:54 +00:00
Alexander Akait
dc939c65af
feat(css/ast): Add types for all dimensions (#3477) 2022-02-08 11:57:57 +00:00
Alexander Akait
fd5668c32f
feat(css): Add support for @property at-rule (#3470) 2022-02-08 11:27:54 +00:00
Alexander Akait
e6f4fbf056
feat(css/ast): Add types for @counter-style at-rule (#3469) 2022-02-08 13:52:14 +09:00
Alexander Akait
df08e4cfd7
fix(css/ast): Fix type definitions for @document at-rule (#3468) 2022-02-08 00:41:56 +09:00
Alexander Akait
69660fd161
refactor(css/ast): Remove unused types (#3465) 2022-02-07 21:34:41 +09:00
Alexander Akait
4853821d00
fix(css): Fix parsing of @page at-rule (#3356) 2022-02-06 20:22:30 +00:00
Alexander Akait
e732250cdf
fix(css/parser): Report errors of at-rules (#3461) 2022-02-06 17:06:32 +00:00
Alexander Akait
cd87d965f3
refactor(css/ast): Refactor types related to selectors (#3460) 2022-02-06 04:24:51 +00:00
Alexander Akait
38879de8de
refactor(css/ast): Change AST for !important (#3440) 2022-02-05 23:22:47 +09:00
Alexander Akait
479b509845
test(css/parser): Add more tests for the selector parser (#3455) 2022-02-05 06:22:32 +00:00
Alexander Akait
5c1b02182d
refactor(css/ast): Refactor types related to @keyframes at-rule (#3441) 2022-02-04 05:10:35 +00:00