mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add a ton of properties and improve a bunch of serialization.
This commit is contained in:
parent
755ebd6528
commit
5ca61c00b9
8 changed files with 923 additions and 63 deletions
|
@ -9,6 +9,7 @@ use self::UnsignedIntegerAttribute::*;
|
|||
use self::SimpleColorAttribute::*;
|
||||
|
||||
use node::{TElement, TElementAttributes, TNode};
|
||||
use properties::common_types::specified::CSSColor;
|
||||
use properties::DeclaredValue::SpecifiedValue;
|
||||
use properties::PropertyDeclaration::*;
|
||||
use properties::{CSSFloat, specified};
|
||||
|
@ -214,7 +215,7 @@ impl PresentationalHintSynthesis for Stylist {
|
|||
None => {}
|
||||
Some(color) => {
|
||||
matching_rules_list.vec_push(DeclarationBlock::from_declaration(
|
||||
BackgroundColorDeclaration(SpecifiedValue(Color::RGBA(color)))));
|
||||
BackgroundColorDeclaration(SpecifiedValue(CSSColor { parsed: Color::RGBA(color), authored: None }))));
|
||||
*shareable = false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue