mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Handle 3- and 4- valued <position>s in specified style
This commit is contained in:
parent
f84e01ecaf
commit
4eb93c85bc
3 changed files with 182 additions and 48 deletions
|
@ -107,8 +107,10 @@ ${helpers.predefined_type("background-color", "CSSColor",
|
|||
pub fn get_initial_specified_value() -> SpecifiedValue {
|
||||
use values::specified::Percentage;
|
||||
Position {
|
||||
horizontal: specified::LengthOrPercentage::Percentage(Percentage(0.0)),
|
||||
vertical: specified::LengthOrPercentage::Percentage(Percentage(0.0)),
|
||||
horiz_keyword: None,
|
||||
horiz_position: Some(specified::LengthOrPercentage::Percentage(Percentage(0.0))),
|
||||
vert_keyword: None,
|
||||
vert_position: Some(specified::LengthOrPercentage::Percentage(Percentage(0.0))),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue