mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Implement css(dimension) and derive ToCss for a bunch of stuff.
For css(dimension), it'd be nice to derive(Parse) too, I think...
This commit is contained in:
parent
1b533f9bdc
commit
4927786d90
10 changed files with 98 additions and 153 deletions
|
@ -1315,14 +1315,14 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
LineDirection::Angle(angle) => angle.radians(),
|
||||
LineDirection::Horizontal(x) => {
|
||||
match x {
|
||||
X::Left => Angle::Degree(270.).radians(),
|
||||
X::Right => Angle::Degree(90.).radians(),
|
||||
X::Left => Angle::Deg(270.).radians(),
|
||||
X::Right => Angle::Deg(90.).radians(),
|
||||
}
|
||||
},
|
||||
LineDirection::Vertical(y) => {
|
||||
match y {
|
||||
Y::Top => Angle::Degree(0.).radians(),
|
||||
Y::Bottom => Angle::Degree(180.).radians(),
|
||||
Y::Top => Angle::Deg(0.).radians(),
|
||||
Y::Bottom => Angle::Deg(180.).radians(),
|
||||
}
|
||||
},
|
||||
LineDirection::Corner(horizontal, vertical) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue