mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement background-position-x/y
This commit is contained in:
parent
a409d41d1d
commit
b302642592
4 changed files with 183 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue