Reject "text" value in background shorthand.

This commit is contained in:
Xidorn Quan 2017-05-24 20:27:18 +10:00
parent f3a694a7b4
commit 766feec4c0

View file

@ -69,6 +69,13 @@
if ${name}.is_none() {
if let Ok(value) = input.try(|input| background_${name}::single_value
::parse(context, input)) {
% if name == "clip" and product == "gecko":
// "text" value of background-clip should not be part of background
// shorthand per current spec and impls.
if value == background_clip::single_value::SpecifiedValue::text {
return Err(());
}
% endif
${name} = Some(value);
continue
}