mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Properly track whether negative values of calc() are allowed
In order to clamp them at computed value time.
This commit is contained in:
parent
c4f34e9019
commit
2617d15ed6
3 changed files with 64 additions and 27 deletions
|
@ -167,6 +167,7 @@ impl ToComputedValue for specified::CalcLengthOrPercentage {
|
|||
self.compute_from_viewport_and_font_size(context.viewport_size(),
|
||||
context.style().get_font().clone_font_size(),
|
||||
context.style().root_font_size())
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue