diff options
Diffstat (limited to 'src/geom/length.rs')
| -rw-r--r-- | src/geom/length.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/geom/length.rs b/src/geom/length.rs index ae615f14..f70ea263 100644 --- a/src/geom/length.rs +++ b/src/geom/length.rs @@ -124,3 +124,11 @@ assign_impl!(Length += Length); assign_impl!(Length -= Length); assign_impl!(Length *= f64); assign_impl!(Length /= f64); + +impl Resolve for Length { + type Output = Abs; + + fn resolve(self, styles: StyleChain) -> Self::Output { + self.abs + self.em.resolve(styles) + } +} |
