ffaee04613
Adds support for the indented syntax, plain CSS imports, `@forward`, and many other previously missing features.
36 lines
866 B
Rust
36 lines
866 B
Rust
#[macro_use]
|
|
mod macros;
|
|
|
|
test!(
|
|
keyword_important_lowercase,
|
|
"a {\n height: !important;\n}\n",
|
|
"a {\n height: !important;\n}\n"
|
|
);
|
|
test!(
|
|
keyword_important_uppercase,
|
|
"a {\n height: !IMPORTANT;\n}\n",
|
|
"a {\n height: !important;\n}\n"
|
|
);
|
|
test!(
|
|
keyword_important_at_start_of_list,
|
|
"a {\n height: !important 1 2 3;\n}\n",
|
|
"a {\n height: !important 1 2 3;\n}\n"
|
|
);
|
|
test!(
|
|
keyword_important_at_end_of_list,
|
|
"a {\n height: 1 2 3 !important;\n}\n",
|
|
"a {\n height: 1 2 3 !important;\n}\n"
|
|
);
|
|
test!(
|
|
keyword_important_inside_list,
|
|
"a {\n color: 1 2 !important 3 4;\n}\n",
|
|
"a {\n color: 1 2 !important 3 4;\n}\n"
|
|
);
|
|
test!(
|
|
whitespace_after_exclamation,
|
|
"a {\n color: ! important;\n}\n",
|
|
"a {\n color: !important;\n}\n"
|
|
);
|
|
|
|
// todo: loud comment between !<>i, silent comment between !<>i
|