mirror of
https://github.com/servo/servo.git
synced 2025-09-11 07:28:19 +01:00
style: Respect calc for percentages.
This commit is contained in:
parent
465e6f14fe
commit
310be02ba8
28 changed files with 308 additions and 176 deletions
|
@ -2482,8 +2482,9 @@ pub extern "C" fn Servo_DeclarationBlock_SetPercentValue(declarations:
|
|||
use style::properties::{PropertyDeclaration, LonghandId};
|
||||
use style::properties::longhands::height::SpecifiedValue as Height;
|
||||
use style::properties::longhands::width::SpecifiedValue as Width;
|
||||
use style::values::computed::Percentage;
|
||||
use style::values::specified::MozLength;
|
||||
use style::values::specified::length::{LengthOrPercentage, Percentage};
|
||||
use style::values::specified::length::LengthOrPercentage;
|
||||
|
||||
let long = get_longhand_from_id!(property);
|
||||
let pc = Percentage(value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue