mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Implement Calc for LengthOrPercentageOrAuto
This commit is contained in:
parent
9556141e57
commit
cb4d878169
7 changed files with 44 additions and 0 deletions
|
@ -437,6 +437,8 @@ impl ViewportConstraints {
|
|||
LengthOrPercentageOrAuto::Percentage(value) =>
|
||||
Some(initial_viewport.$dimension.scale_by(value)),
|
||||
LengthOrPercentageOrAuto::Auto => None,
|
||||
// XXX WRONG HACK
|
||||
LengthOrPercentageOrAuto::Calc(calc) => None,
|
||||
}
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue