mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
0b76d29ae4
swc_css_ast: - Add `SelectorLsit`. - Use `SelectorList` instead of `Vec<ComplexSelector>`.
554 lines
12 KiB
Plaintext
554 lines
12 KiB
Plaintext
error: Stylesheet
|
|
--> $DIR/tests/fixture/important/basic/input.css:1:1
|
|
|
|
|
1 | / .a {
|
|
2 | | prop: important;
|
|
3 | | color: red important;
|
|
4 | | width: 1px!important;
|
|
... |
|
|
16 | | padding: 1px/* sep */!important;
|
|
17 | | }
|
|
| |__^
|
|
|
|
error: Rule
|
|
--> $DIR/tests/fixture/important/basic/input.css:1:1
|
|
|
|
|
1 | / .a {
|
|
2 | | prop: important;
|
|
3 | | color: red important;
|
|
4 | | width: 1px!important;
|
|
... |
|
|
16 | | padding: 1px/* sep */!important;
|
|
17 | | }
|
|
| |_^
|
|
|
|
error: StyleRule
|
|
--> $DIR/tests/fixture/important/basic/input.css:1:1
|
|
|
|
|
1 | / .a {
|
|
2 | | prop: important;
|
|
3 | | color: red important;
|
|
4 | | width: 1px!important;
|
|
... |
|
|
16 | | padding: 1px/* sep */!important;
|
|
17 | | }
|
|
| |_^
|
|
|
|
error: SelectorList
|
|
--> $DIR/tests/fixture/important/basic/input.css:1:1
|
|
|
|
|
1 | .a {
|
|
| ^^
|
|
|
|
error: ComplexSelector
|
|
--> $DIR/tests/fixture/important/basic/input.css:1:1
|
|
|
|
|
1 | .a {
|
|
| ^^
|
|
|
|
error: CompoundSelector
|
|
--> $DIR/tests/fixture/important/basic/input.css:1:1
|
|
|
|
|
1 | .a {
|
|
| ^^
|
|
|
|
error: SubclassSelector
|
|
--> $DIR/tests/fixture/important/basic/input.css:1:1
|
|
|
|
|
1 | .a {
|
|
| ^^
|
|
|
|
error: ClassSelector
|
|
--> $DIR/tests/fixture/important/basic/input.css:1:1
|
|
|
|
|
1 | .a {
|
|
| ^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:1:2
|
|
|
|
|
1 | .a {
|
|
| ^
|
|
|
|
error: Block
|
|
--> $DIR/tests/fixture/important/basic/input.css:1:4
|
|
|
|
|
1 | .a {
|
|
| ____^
|
|
2 | | prop: important;
|
|
3 | | color: red important;
|
|
4 | | width: 1px!important;
|
|
... |
|
|
16 | | padding: 1px/* sep */!important;
|
|
17 | | }
|
|
| |_^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:2:5
|
|
|
|
|
2 | prop: important;
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:2:5
|
|
|
|
|
2 | prop: important;
|
|
| ^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:2:11
|
|
|
|
|
2 | prop: important;
|
|
| ^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:2:11
|
|
|
|
|
2 | prop: important;
|
|
| ^^^^^^^^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:3:5
|
|
|
|
|
3 | color: red important;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:3:5
|
|
|
|
|
3 | color: red important;
|
|
| ^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:3:12
|
|
|
|
|
3 | color: red important;
|
|
| ^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:3:12
|
|
|
|
|
3 | color: red important;
|
|
| ^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:3:16
|
|
|
|
|
3 | color: red important;
|
|
| ^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:3:16
|
|
|
|
|
3 | color: red important;
|
|
| ^^^^^^^^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:4:5
|
|
|
|
|
4 | width: 1px!important;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:4:5
|
|
|
|
|
4 | width: 1px!important;
|
|
| ^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:4:12
|
|
|
|
|
4 | width: 1px!important;
|
|
| ^^^
|
|
|
|
error: UnitValue
|
|
--> $DIR/tests/fixture/important/basic/input.css:4:12
|
|
|
|
|
4 | width: 1px!important;
|
|
| ^^^
|
|
|
|
error: Num
|
|
--> $DIR/tests/fixture/important/basic/input.css:4:12
|
|
|
|
|
4 | width: 1px!important;
|
|
| ^
|
|
|
|
error: Unit
|
|
--> $DIR/tests/fixture/important/basic/input.css:4:13
|
|
|
|
|
4 | width: 1px!important;
|
|
| ^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:5:5
|
|
|
|
|
5 | color: red!important;
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:5:5
|
|
|
|
|
5 | color: red!important;
|
|
| ^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:5:12
|
|
|
|
|
5 | color: red!important;
|
|
| ^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:5:12
|
|
|
|
|
5 | color: red!important;
|
|
| ^^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:6:5
|
|
|
|
|
6 | color: red !important;
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:6:5
|
|
|
|
|
6 | color: red !important;
|
|
| ^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:6:12
|
|
|
|
|
6 | color: red !important;
|
|
| ^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:6:12
|
|
|
|
|
6 | color: red !important;
|
|
| ^^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:7:5
|
|
|
|
|
7 | color: red !important;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:7:5
|
|
|
|
|
7 | color: red !important;
|
|
| ^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:7:12
|
|
|
|
|
7 | color: red !important;
|
|
| ^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:7:12
|
|
|
|
|
7 | color: red !important;
|
|
| ^^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:8:5
|
|
|
|
|
8 | color: red ! important ;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:8:5
|
|
|
|
|
8 | color: red ! important ;
|
|
| ^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:8:12
|
|
|
|
|
8 | color: red ! important ;
|
|
| ^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:8:12
|
|
|
|
|
8 | color: red ! important ;
|
|
| ^^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:9:5
|
|
|
|
|
9 | color: blue !IMPORTANT;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:9:5
|
|
|
|
|
9 | color: blue !IMPORTANT;
|
|
| ^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:9:12
|
|
|
|
|
9 | color: blue !IMPORTANT;
|
|
| ^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:9:12
|
|
|
|
|
9 | color: blue !IMPORTANT;
|
|
| ^^^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:10:5
|
|
|
|
|
10 | color: white ! IMPORTANT ;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:10:5
|
|
|
|
|
10 | color: white ! IMPORTANT ;
|
|
| ^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:10:12
|
|
|
|
|
10 | color: white ! IMPORTANT ;
|
|
| ^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:10:12
|
|
|
|
|
10 | color: white ! IMPORTANT ;
|
|
| ^^^^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:11:5
|
|
|
|
|
11 | margin: 10px ! important;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:11:5
|
|
|
|
|
11 | margin: 10px ! important;
|
|
| ^^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:11:13
|
|
|
|
|
11 | margin: 10px ! important;
|
|
| ^^^^
|
|
|
|
error: UnitValue
|
|
--> $DIR/tests/fixture/important/basic/input.css:11:13
|
|
|
|
|
11 | margin: 10px ! important;
|
|
| ^^^^
|
|
|
|
error: Num
|
|
--> $DIR/tests/fixture/important/basic/input.css:11:13
|
|
|
|
|
11 | margin: 10px ! important;
|
|
| ^^
|
|
|
|
error: Unit
|
|
--> $DIR/tests/fixture/important/basic/input.css:11:15
|
|
|
|
|
11 | margin: 10px ! important;
|
|
| ^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:12:5
|
|
|
|
|
12 | padding: 20px ! /* test */ important;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:12:5
|
|
|
|
|
12 | padding: 20px ! /* test */ important;
|
|
| ^^^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:12:14
|
|
|
|
|
12 | padding: 20px ! /* test */ important;
|
|
| ^^^^
|
|
|
|
error: UnitValue
|
|
--> $DIR/tests/fixture/important/basic/input.css:12:14
|
|
|
|
|
12 | padding: 20px ! /* test */ important;
|
|
| ^^^^
|
|
|
|
error: Num
|
|
--> $DIR/tests/fixture/important/basic/input.css:12:14
|
|
|
|
|
12 | padding: 20px ! /* test */ important;
|
|
| ^^
|
|
|
|
error: Unit
|
|
--> $DIR/tests/fixture/important/basic/input.css:12:16
|
|
|
|
|
12 | padding: 20px ! /* test */ important;
|
|
| ^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:13:5
|
|
|
|
|
13 | width: 100px ! /*! test */ important;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:13:5
|
|
|
|
|
13 | width: 100px ! /*! test */ important;
|
|
| ^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:13:12
|
|
|
|
|
13 | width: 100px ! /*! test */ important;
|
|
| ^^^^^
|
|
|
|
error: UnitValue
|
|
--> $DIR/tests/fixture/important/basic/input.css:13:12
|
|
|
|
|
13 | width: 100px ! /*! test */ important;
|
|
| ^^^^^
|
|
|
|
error: Num
|
|
--> $DIR/tests/fixture/important/basic/input.css:13:12
|
|
|
|
|
13 | width: 100px ! /*! test */ important;
|
|
| ^^^
|
|
|
|
error: Unit
|
|
--> $DIR/tests/fixture/important/basic/input.css:13:15
|
|
|
|
|
13 | width: 100px ! /*! test */ important;
|
|
| ^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:14:5
|
|
|
|
|
14 | height: 100px /*! test */ important;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:14:5
|
|
|
|
|
14 | height: 100px /*! test */ important;
|
|
| ^^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:14:13
|
|
|
|
|
14 | height: 100px /*! test */ important;
|
|
| ^^^^^
|
|
|
|
error: UnitValue
|
|
--> $DIR/tests/fixture/important/basic/input.css:14:13
|
|
|
|
|
14 | height: 100px /*! test */ important;
|
|
| ^^^^^
|
|
|
|
error: Num
|
|
--> $DIR/tests/fixture/important/basic/input.css:14:13
|
|
|
|
|
14 | height: 100px /*! test */ important;
|
|
| ^^^
|
|
|
|
error: Unit
|
|
--> $DIR/tests/fixture/important/basic/input.css:14:16
|
|
|
|
|
14 | height: 100px /*! test */ important;
|
|
| ^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:14:31
|
|
|
|
|
14 | height: 100px /*! test */ important;
|
|
| ^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:14:31
|
|
|
|
|
14 | height: 100px /*! test */ important;
|
|
| ^^^^^^^^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:15:5
|
|
|
|
|
15 | z-index: 1 ""! important;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:15:5
|
|
|
|
|
15 | z-index: 1 ""! important;
|
|
| ^^^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:15:14
|
|
|
|
|
15 | z-index: 1 ""! important;
|
|
| ^
|
|
|
|
error: Num
|
|
--> $DIR/tests/fixture/important/basic/input.css:15:14
|
|
|
|
|
15 | z-index: 1 ""! important;
|
|
| ^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:15:16
|
|
|
|
|
15 | z-index: 1 ""! important;
|
|
| ^^
|
|
|
|
error: Str
|
|
--> $DIR/tests/fixture/important/basic/input.css:15:16
|
|
|
|
|
15 | z-index: 1 ""! important;
|
|
| ^^
|
|
|
|
error: Declaration
|
|
--> $DIR/tests/fixture/important/basic/input.css:16:5
|
|
|
|
|
16 | padding: 1px/* sep */!important;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Text
|
|
--> $DIR/tests/fixture/important/basic/input.css:16:5
|
|
|
|
|
16 | padding: 1px/* sep */!important;
|
|
| ^^^^^^^
|
|
|
|
error: Value
|
|
--> $DIR/tests/fixture/important/basic/input.css:16:14
|
|
|
|
|
16 | padding: 1px/* sep */!important;
|
|
| ^^^
|
|
|
|
error: UnitValue
|
|
--> $DIR/tests/fixture/important/basic/input.css:16:14
|
|
|
|
|
16 | padding: 1px/* sep */!important;
|
|
| ^^^
|
|
|
|
error: Num
|
|
--> $DIR/tests/fixture/important/basic/input.css:16:14
|
|
|
|
|
16 | padding: 1px/* sep */!important;
|
|
| ^
|
|
|
|
error: Unit
|
|
--> $DIR/tests/fixture/important/basic/input.css:16:15
|
|
|
|
|
16 | padding: 1px/* sep */!important;
|
|
| ^^
|
|
|