style: Properly track whether negative values of calc() are allowed

In order to clamp them at computed value time.
This commit is contained in:
Emilio Cobos Álvarez 2016-08-29 22:25:37 -07:00
parent c4f34e9019
commit 2617d15ed6
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 64 additions and 27 deletions

View file

@ -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())
}
}