mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Implement viewport percentage length units ('vw', 'vh', 'vmin', 'vmax')
This commit is contained in:
parent
16a8047343
commit
bc1c44bbc2
3 changed files with 64 additions and 0 deletions
|
@ -34,6 +34,8 @@ impl Range<specified::Length> {
|
|||
let initial_font_size = longhands::font_size::get_initial_value();
|
||||
value.to_computed_value(initial_font_size, initial_font_size)
|
||||
}
|
||||
&specified::Length::ViewportPercentage(value) =>
|
||||
value.to_computed_value(viewport_size),
|
||||
_ => unreachable!()
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue