mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Reject "text" value in background shorthand.
This commit is contained in:
parent
f3a694a7b4
commit
766feec4c0
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue