mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
c05a724d84
swc_css_ast: - Add `Value::Comma`. swc_css_parser: - Implement more `Parse<T>`. - Fix parsing of values separated with comma. swc_css_codegen: - Fix escaping. - Fix codegen of `!important`. swc_stylis: - Port prefixer.
154 lines
3.6 KiB
Plaintext
154 lines
3.6 KiB
Plaintext
error: Stylesheet
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:1:1
|
|
|
|
|
1 | / a {
|
|
2 | | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
3 | | }
|
|
| |__^
|
|
|
|
error: Rule
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:1:1
|
|
|
|
|
1 | / a {
|
|
2 | | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
3 | | }
|
|
| |_^
|
|
|
|
error: StyleRule
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:1:1
|
|
|
|
|
1 | / a {
|
|
2 | | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
3 | | }
|
|
| |_^
|
|
|
|
error: ComplexSelector
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:1:1
|
|
|
|
|
1 | a {
|
|
| ^
|
|
|
|
error: CompoundSelector
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:1:1
|
|
|
|
|
1 | a {
|
|
| ^
|
|
|
|
error: NamespacedName
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:1:1
|
|
|
|
|
1 | a {
|
|
| ^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:1:1
|
|
|
|
|
1 | a {
|
|
| ^
|
|
|
|
error: DeclBlock
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:1:3
|
|
|
|
|
1 | a {
|
|
| ___^
|
|
2 | | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
3 | | }
|
|
| |_^
|
|
|
|
error: Property
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:5
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:5
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:12
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:13
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: FnValue
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:13
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:13
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:23
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: SpaceValues
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:23
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:23
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: UrlValue
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:23
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:36
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^
|
|
|
|
error: UnitValue
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:36
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^
|
|
|
|
error: Num
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:36
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^
|
|
|
|
error: Unit
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:37
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:41
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/stylis/comma/01/input.css:2:41
|
|
|
|
|
2 | cursor: image-set(url(foo.jpg) 2x), pointer;
|
|
| ^^^^^^^
|
|
|