mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Implement HorizontalPosition / VerticalPosition
This commit is contained in:
parent
872ec89a9c
commit
a409d41d1d
6 changed files with 513 additions and 181 deletions
|
@ -112,11 +112,16 @@ ${helpers.predefined_type("background-color", "CSSColor",
|
|||
#[inline]
|
||||
pub fn get_initial_specified_value() -> SpecifiedValue {
|
||||
use values::specified::Percentage;
|
||||
use values::specified::position::{HorizontalPosition, VerticalPosition};
|
||||
Position {
|
||||
horiz_keyword: None,
|
||||
horiz_position: Some(specified::LengthOrPercentage::Percentage(Percentage(0.0))),
|
||||
vert_keyword: None,
|
||||
vert_position: Some(specified::LengthOrPercentage::Percentage(Percentage(0.0))),
|
||||
horizontal: HorizontalPosition {
|
||||
keyword: None,
|
||||
position: Some(specified::LengthOrPercentage::Percentage(Percentage(0.0))),
|
||||
},
|
||||
vertical: VerticalPosition {
|
||||
keyword: None,
|
||||
position: Some(specified::LengthOrPercentage::Percentage(Percentage(0.0))),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue