Handle 3- and 4- valued <position>s in specified style

This commit is contained in:
Nazım Can Altınova 2016-08-25 16:21:43 +03:00
parent f84e01ecaf
commit 4eb93c85bc
3 changed files with 182 additions and 48 deletions

View file

@ -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))),
}
}