Implement background-position-x/y

This commit is contained in:
Nazım Can Altınova 2016-12-10 21:55:37 +03:00
parent a409d41d1d
commit b302642592
4 changed files with 183 additions and 2 deletions

View file

@ -27,6 +27,8 @@ impl ToCss for Position {
}
}
#[derive(Debug, Clone, PartialEq, Copy)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
pub struct HorizontalPosition(pub LengthOrPercentage);
impl ToCss for HorizontalPosition {
@ -35,6 +37,8 @@ impl ToCss for HorizontalPosition {
}
}
#[derive(Debug, Clone, PartialEq, Copy)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
pub struct VerticalPosition(pub LengthOrPercentage);
impl ToCss for VerticalPosition {