mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Support multiple backgrounds in servo layout
This commit is contained in:
parent
66cdf9ae4f
commit
69ada0d7a3
5 changed files with 125 additions and 95 deletions
|
@ -362,8 +362,11 @@ impl LayoutElementHelpers for LayoutJS<Element> {
|
|||
if let Some(url) = background {
|
||||
hints.push(from_declaration(
|
||||
PropertyDeclaration::BackgroundImage(DeclaredValue::Value(
|
||||
background_image::SpecifiedValue(Some(
|
||||
specified::Image::Url(url, specified::UrlExtraData { })))))));
|
||||
background_image::SpecifiedValue(vec![
|
||||
background_image::single_value::SpecifiedValue(Some(
|
||||
specified::Image::Url(url, specified::UrlExtraData { })
|
||||
))
|
||||
])))));
|
||||
}
|
||||
|
||||
let color = if let Some(this) = self.downcast::<HTMLFontElement>() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue