remove superfluous whitespace from media query involving and
This commit is contained in:
parent
22cc36b578
commit
4edc324fcd
@ -161,7 +161,7 @@ impl<'a> Parser<'a> {
|
||||
self.whitespace();
|
||||
|
||||
if ident.to_ascii_lowercase() == "and" {
|
||||
buf.push_str(" and ");
|
||||
buf.push_str("and ");
|
||||
} else {
|
||||
buf.push_str(&ident);
|
||||
|
||||
|
@ -40,3 +40,12 @@ test!(
|
||||
}",
|
||||
"@media not screen {\n a {\n color: red;\n }\n}\n"
|
||||
);
|
||||
test!(
|
||||
multiple_identifiers_in_query_second_is_and,
|
||||
"@media print and (foo: 1 2 3) {
|
||||
a {
|
||||
color: red;
|
||||
}
|
||||
}",
|
||||
"@media print and (foo: 1 2 3) {\n a {\n color: red;\n }\n}\n"
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user