Commit Graph

15 Commits

Author SHA1 Message Date
Alexander Akait
20f4e2148c
refactor(css/ast): Use names from specification for ast types (#2643)
swc_css_ast:
 - Rename `AttrSelectorOp` to `AttrSelectorMatcher`.
2021-11-05 11:42:51 +00:00
Alexander Akait
8c61d0d609
feat(css/ast): Add RoundBracketBlock to Value (#2618) 2021-11-04 12:05:29 +09:00
Alexander Akait
cc5398b1a6
refactor(css/parser): Refactor parser for at rules (#2617)
swc_css_ast:
 - Move some at-rules to own files.

swc_css_parser:
 - Implement `Parse` for more types.
2021-11-02 11:13:23 +00:00
Alexander Akait
c89a9ea171
fix(css/lexer): Fix some edge cases (#2612) 2021-11-02 05:28:19 +00:00
Alexander Akait
b806551ade
refactor(css/lexer): Refactor lexer to follow spec (#2593) 2021-11-01 16:53:26 +09:00
Alexander Akait
47f7f1ad4f
fix(css/parser): Resolve some TODOs (#2572) 2021-10-29 19:55:02 +09:00
Alexander Akait
0e458778ec
refactor(css/ast): Rename types (#2532) 2021-10-27 03:38:05 +09:00
Alexander Akait
6876b1b26c
refactor(css/parser): Fix parsing of some selectors (#2525)
swc_css_parser:
 - Fix whitespace bugs related to parsing of attribute selectors.
 - Fix bugs related to empty namespace selectors.
2021-10-25 23:48:56 +09:00
Alexander Akait
e327c9a502
feat(css/ast): Add Percent token (#2482) 2021-10-22 13:35:29 +09:00
Alexander Akait
d83bde8ca5
fix(css/parser): Fix parsing of url (#2484) 2021-10-20 15:39:01 +09:00
Alexander Akait
4f2dbd816c
fix(css/parser): Fix parsing of numbers (#2444) 2021-10-17 23:24:28 +09:00
Alexander Akait
f7b065ef0b
fix(css/parser): Fix parsing of comments (#2414) 2021-10-13 20:48:15 +09:00
Alexander Akait
2f4da9a8ff
fix(css/parser): Fix parsing of !important (#2286) 2021-09-23 20:50:16 +09:00
강동윤
7381644f6b
feat(css): Implement codegen for css (#2115)
swc_css_ast:
 - Remove unused tokens.
 - `SubclassSelector::PseudoClass` => `SubclassSelector::Pseudo`.
 - Fix `AttrSelectorOp`
 - `AttrSelector.value`: `Option<Text>` => `Option<Str>`.

swc_css_codegen:
 - Implement a code generator.

swc_css_parser:
 - Implement `Parse<Stylesheet>` for the parser.
 - Fix parsing of pseudo selectors.
 - Fix parsing of unknown at-rules.
2021-08-20 12:38:15 +00:00
강동윤
d39acd1d11
feat(css): Implement parser (#2074) 2021-08-19 05:16:32 +00:00