swc/crates/swc_css_parser/tests/fixture/function/url/span.rust-debug
Alexander Akait 8781527751
fix(css/ast): Fix type definitions related to parsing unknown at-rules (#2922)
swc_css_ast:
 - Rename `FnValue` to `Function`.
2021-12-01 17:07:49 +00:00

856 lines
21 KiB
Plaintext

error: Stylesheet
--> $DIR/tests/fixture/function/url/input.css:1:1
|
1 | / a {
2 | | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
3 | | background-image: url("./image (1).jpg");
4 | | background-image: url('./image (1).jpg');
... |
42 | | );
43 | | }
| |__^
error: Rule
--> $DIR/tests/fixture/function/url/input.css:1:1
|
1 | / a {
2 | | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
3 | | background-image: url("./image (1).jpg");
4 | | background-image: url('./image (1).jpg');
... |
42 | | );
43 | | }
| |_^
error: QualifiedRule
--> $DIR/tests/fixture/function/url/input.css:1:1
|
1 | / a {
2 | | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
3 | | background-image: url("./image (1).jpg");
4 | | background-image: url('./image (1).jpg');
... |
42 | | );
43 | | }
| |_^
error: SelectorList
--> $DIR/tests/fixture/function/url/input.css:1:1
|
1 | a {
| ^
error: ComplexSelector
--> $DIR/tests/fixture/function/url/input.css:1:1
|
1 | a {
| ^
error: CompoundSelector
--> $DIR/tests/fixture/function/url/input.css:1:1
|
1 | a {
| ^
error: TypeSelector
--> $DIR/tests/fixture/function/url/input.css:1:1
|
1 | a {
| ^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:1:1
|
1 | a {
| ^
error: Block
--> $DIR/tests/fixture/function/url/input.css:1:3
|
1 | a {
| ___^
2 | | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
3 | | background-image: url("./image (1).jpg");
4 | | background-image: url('./image (1).jpg');
... |
42 | | );
43 | | }
| |_^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:2:5
|
2 | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:2:5
|
2 | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:2:23
|
2 | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: UrlValue
--> $DIR/tests/fixture/function/url/input.css:2:23
|
2 | background-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:3:5
|
3 | background-image: url("./image (1).jpg");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:3:5
|
3 | background-image: url("./image (1).jpg");
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:3:23
|
3 | background-image: url("./image (1).jpg");
| ^^^^^^^^^^^^^^^^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:3:23
|
3 | background-image: url("./image (1).jpg");
| ^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:3:23
|
3 | background-image: url("./image (1).jpg");
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:3:27
|
3 | background-image: url("./image (1).jpg");
| ^^^^^^^^^^^^^^^^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:3:27
|
3 | background-image: url("./image (1).jpg");
| ^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:4:5
|
4 | background-image: url('./image (1).jpg');
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:4:5
|
4 | background-image: url('./image (1).jpg');
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:4:23
|
4 | background-image: url('./image (1).jpg');
| ^^^^^^^^^^^^^^^^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:4:23
|
4 | background-image: url('./image (1).jpg');
| ^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:4:23
|
4 | background-image: url('./image (1).jpg');
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:4:27
|
4 | background-image: url('./image (1).jpg');
| ^^^^^^^^^^^^^^^^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:4:27
|
4 | background-image: url('./image (1).jpg');
| ^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:5:5
|
5 | background-image: URL('./image (1).jpg');
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:5:5
|
5 | background-image: URL('./image (1).jpg');
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:5:23
|
5 | background-image: URL('./image (1).jpg');
| ^^^^^^^^^^^^^^^^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:5:23
|
5 | background-image: URL('./image (1).jpg');
| ^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:5:23
|
5 | background-image: URL('./image (1).jpg');
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:5:27
|
5 | background-image: URL('./image (1).jpg');
| ^^^^^^^^^^^^^^^^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:5:27
|
5 | background-image: URL('./image (1).jpg');
| ^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:6:5
|
6 | background-image: url( './image (1).jpg');
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:6:5
|
6 | background-image: url( './image (1).jpg');
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:6:23
|
6 | background-image: url( './image (1).jpg');
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:6:23
|
6 | background-image: url( './image (1).jpg');
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:6:23
|
6 | background-image: url( './image (1).jpg');
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:6:30
|
6 | background-image: url( './image (1).jpg');
| ^^^^^^^^^^^^^^^^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:6:30
|
6 | background-image: url( './image (1).jpg');
| ^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:7:5
|
7 | background-image: url('./image (1).jpg' );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:7:5
|
7 | background-image: url('./image (1).jpg' );
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:7:23
|
7 | background-image: url('./image (1).jpg' );
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:7:23
|
7 | background-image: url('./image (1).jpg' );
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:7:23
|
7 | background-image: url('./image (1).jpg' );
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:7:27
|
7 | background-image: url('./image (1).jpg' );
| ^^^^^^^^^^^^^^^^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:7:27
|
7 | background-image: url('./image (1).jpg' );
| ^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:8:5
|
8 | background-image: url( './image (1).jpg' );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:8:5
|
8 | background-image: url( './image (1).jpg' );
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:8:23
|
8 | background-image: url( './image (1).jpg' );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:8:23
|
8 | background-image: url( './image (1).jpg' );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:8:23
|
8 | background-image: url( './image (1).jpg' );
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:8:30
|
8 | background-image: url( './image (1).jpg' );
| ^^^^^^^^^^^^^^^^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:8:30
|
8 | background-image: url( './image (1).jpg' );
| ^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:9:5
|
9 | / background-image: url(
10 | | './image (1).jpg'
11 | | );
| |_____^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:9:5
|
9 | background-image: url(
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:9:23
|
9 | background-image: url(
| _______________________^
10 | | './image (1).jpg'
11 | | );
| |_____^
error: Function
--> $DIR/tests/fixture/function/url/input.css:9:23
|
9 | background-image: url(
| _______________________^
10 | | './image (1).jpg'
11 | | );
| |_____^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:9:23
|
9 | background-image: url(
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:10:5
|
10 | './image (1).jpg'
| ^^^^^^^^^^^^^^^^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:10:5
|
10 | './image (1).jpg'
| ^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:12:5
|
12 | background-image: url();
| ^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:12:5
|
12 | background-image: url();
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:12:23
|
12 | background-image: url();
| ^^^^^
error: UrlValue
--> $DIR/tests/fixture/function/url/input.css:12:23
|
12 | background-image: url();
| ^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:13:5
|
13 | background-image: url( );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:13:5
|
13 | background-image: url( );
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:13:23
|
13 | background-image: url( );
| ^^^^^^^^
error: UrlValue
--> $DIR/tests/fixture/function/url/input.css:13:23
|
13 | background-image: url( );
| ^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:14:5
|
14 | background-image: url("");
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:14:5
|
14 | background-image: url("");
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:14:23
|
14 | background-image: url("");
| ^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:14:23
|
14 | background-image: url("");
| ^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:14:23
|
14 | background-image: url("");
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:14:27
|
14 | background-image: url("");
| ^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:14:27
|
14 | background-image: url("");
| ^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:15:5
|
15 | background-image: url( "" );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:15:5
|
15 | background-image: url( "" );
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:15:23
|
15 | background-image: url( "" );
| ^^^^^^^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:15:23
|
15 | background-image: url( "" );
| ^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:15:23
|
15 | background-image: url( "" );
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:15:30
|
15 | background-image: url( "" );
| ^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:15:30
|
15 | background-image: url( "" );
| ^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:16:5
|
16 | background-image: url('');
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:16:5
|
16 | background-image: url('');
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:16:23
|
16 | background-image: url('');
| ^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:16:23
|
16 | background-image: url('');
| ^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:16:23
|
16 | background-image: url('');
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:16:27
|
16 | background-image: url('');
| ^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:16:27
|
16 | background-image: url('');
| ^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:17:5
|
17 | background-image: url( '' );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:17:5
|
17 | background-image: url( '' );
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:17:23
|
17 | background-image: url( '' );
| ^^^^^^^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:17:23
|
17 | background-image: url( '' );
| ^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:17:23
|
17 | background-image: url( '' );
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:17:30
|
17 | background-image: url( '' );
| ^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:17:30
|
17 | background-image: url( '' );
| ^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:18:5
|
18 | background-image: url( ' ' );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:18:5
|
18 | background-image: url( ' ' );
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:18:23
|
18 | background-image: url( ' ' );
| ^^^^^^^^^^^^^^
error: Function
--> $DIR/tests/fixture/function/url/input.css:18:23
|
18 | background-image: url( ' ' );
| ^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:18:23
|
18 | background-image: url( ' ' );
| ^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:18:30
|
18 | background-image: url( ' ' );
| ^^^
error: Str
--> $DIR/tests/fixture/function/url/input.css:18:30
|
18 | background-image: url( ' ' );
| ^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:19:5
|
19 | background-image: url(./image.png);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:19:5
|
19 | background-image: url(./image.png);
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:19:23
|
19 | background-image: url(./image.png);
| ^^^^^^^^^^^^^^^^
error: UrlValue
--> $DIR/tests/fixture/function/url/input.css:19:23
|
19 | background-image: url(./image.png);
| ^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:20:5
|
20 | background-image: url( ./image.png );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:20:5
|
20 | background-image: url( ./image.png );
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:20:23
|
20 | background-image: url( ./image.png );
| ^^^^^^^^^^^^^^^^^^^^^^
error: UrlValue
--> $DIR/tests/fixture/function/url/input.css:20:23
|
20 | background-image: url( ./image.png );
| ^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:21:5
|
21 | background-image: url( ./image\32.png );
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:21:5
|
21 | background-image: url( ./image\32.png );
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:21:23
|
21 | background-image: url( ./image\32.png );
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: UrlValue
--> $DIR/tests/fixture/function/url/input.css:21:23
|
21 | background-image: url( ./image\32.png );
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:22:5
|
22 | / background-image: url(
23 | | ./image\32.png
24 | | );
| |_____^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:22:5
|
22 | background-image: url(
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:22:23
|
22 | background-image: url(
| _______________________^
23 | | ./image\32.png
24 | | );
| |_____^
error: UrlValue
--> $DIR/tests/fixture/function/url/input.css:22:23
|
22 | background-image: url(
| _______________________^
23 | | ./image\32.png
24 | | );
| |_____^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:25:5
|
25 | / background-image: url(
26 | |
27 | |
28 | |
... |
32 | |
33 | | );
| |_____^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:25:5
|
25 | background-image: url(
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:25:23
|
25 | background-image: url(
| _______________________^
26 | |
27 | |
28 | |
... |
32 | |
33 | | );
| |_____^
error: UrlValue
--> $DIR/tests/fixture/function/url/input.css:25:23
|
25 | background-image: url(
| _______________________^
26 | |
27 | |
28 | |
... |
32 | |
33 | | );
| |_____^
error: Declaration
--> $DIR/tests/fixture/function/url/input.css:34:5
|
34 | / background-image: url(
35 | |
36 | |
37 | |
... |
41 | |
42 | | );
| |________^
error: Ident
--> $DIR/tests/fixture/function/url/input.css:34:5
|
34 | background-image: url(
| ^^^^^^^^^^^^^^^^
error: Value
--> $DIR/tests/fixture/function/url/input.css:34:23
|
34 | background-image: url(
| _______________________^
35 | |
36 | |
37 | |
... |
41 | |
42 | | );
| |________^
error: UrlValue
--> $DIR/tests/fixture/function/url/input.css:34:23
|
34 | background-image: url(
| _______________________^
35 | |
36 | |
37 | |
... |
41 | |
42 | | );
| |________^