allow media queries to contain a single identifier wrapped in parens
This commit is contained in:
parent
b56a4a3fcc
commit
df60ef094c
@ -58,7 +58,7 @@ impl<'a> Parser<'a> {
|
|||||||
self.toks.next();
|
self.toks.next();
|
||||||
self.toks.next();
|
self.toks.next();
|
||||||
}
|
}
|
||||||
'>' | '<' | ':' => {
|
'>' | '<' | ':' | ')' => {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
@ -49,3 +49,8 @@ test!(
|
|||||||
}",
|
}",
|
||||||
"@media print and (foo: 1 2 3) {\n a {\n color: red;\n }\n}\n"
|
"@media print and (foo: 1 2 3) {\n a {\n color: red;\n }\n}\n"
|
||||||
);
|
);
|
||||||
|
test!(
|
||||||
|
single_identifier_inside_parens,
|
||||||
|
"@media (color) {a {color: red;}}",
|
||||||
|
"@media (color) {\n a {\n color: red;\n }\n}\n"
|
||||||
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user