Allow text to be in background shorthand

This commit is contained in:
Xidorn Quan 2017-05-25 18:45:41 +10:00
parent 9e7f02ba77
commit 3e51595f8e

View file

@ -72,13 +72,6 @@
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
}