mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #17792 - upsuper:supports-any-value, r=SimonSapin
Fix supports rule parsing issues with <any-value> This eventually fixes #15482, as well as several reftests in mozilla-central which were added for [bug 883987](https://bugzilla.mozilla.org/show_bug.cgi?id=883987). The new function should probably be moved into cssparser crate at some point. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17792) <!-- Reviewable:end -->
This commit is contained in:
commit
e19fefcb47
2 changed files with 18 additions and 25 deletions
|
@ -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))");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue