mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Handle prefixed value of -moz-user-select properly
This commit is contained in:
parent
8f37de05b2
commit
9299a0dc2c
4 changed files with 9 additions and 5 deletions
|
@ -20,8 +20,9 @@ fn test_moz_user_select() {
|
|||
assert_roundtrip_with_context!(_moz_user_select::parse, "toggle");
|
||||
assert_roundtrip_with_context!(_moz_user_select::parse, "tri-state");
|
||||
assert_roundtrip_with_context!(_moz_user_select::parse, "-moz-all");
|
||||
assert_roundtrip_with_context!(_moz_user_select::parse, "-moz-none");
|
||||
assert_roundtrip_with_context!(_moz_user_select::parse, "-moz-text");
|
||||
assert_eq!(parse(_moz_user_select::parse, "-moz-none"),
|
||||
Ok(_moz_user_select::SpecifiedValue::none));
|
||||
|
||||
assert!(parse(_moz_user_select::parse, "potato").is_err());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue