Fix supports rule parsing issues with <any-value>

This commit is contained in:
Xidorn Quan 2017-07-20 13:48:56 +10:00
parent 7d95fb8e49
commit 5eb0613947
2 changed files with 18 additions and 25 deletions

View file

@ -11,4 +11,6 @@ fn test_supports_condition() {
assert_roundtrip!(SupportsCondition::parse, "(margin: 1px)");
assert_roundtrip!(SupportsCondition::parse, "not (--be: to be)");
assert_roundtrip!(SupportsCondition::parse, "(color: blue) and future-extension(4)");
assert_roundtrip!(SupportsCondition::parse, "future-\\1 extension(4)");
assert_roundtrip!(SupportsCondition::parse, "((test))");
}