servo/components/style/values/computed
Emilio Cobos Álvarez 9404ac89b7 style: Don't clamp font-size calc() factors too early.
These two bugs (bug 1572738 and bug 1572451) are stylo regressions.

When font-family changes, we try to recompute the font-size with a length /
percentage combinations in case the generic family changes, so the user
preferences are kept.

When calc() is involved, we clamp to non-negative too early, via
NonNegativeLength::scale_by.

I think we should generally dump this "try to track font-size across calc()"
thingie, as as various comments note it is not quite perfect, and it's not clear
how it should work in presence of min()/max().

This patch fixes the issue and simplifies code a bit, I may consider removing
this altogether in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D41776
2019-09-12 22:07:45 +02:00
..
align.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
angle.rs style: Use cbindgen to back CSS transforms. 2019-05-29 16:14:12 +02:00
background.rs style: Use rust types for background-size. 2019-02-23 21:02:46 -08:00
basic_shape.rs style: Should not serialize default radius of circle. 2019-06-25 13:11:30 +02:00
border.rs style: Reformat recent style system changes. 2019-05-29 16:14:30 +02:00
box.rs style: Reformat recent changes. 2019-04-12 12:20:14 +02:00
color.rs style: Remove the last usage of lossy currentcolor. 2019-04-12 12:20:02 +02:00
column.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
counters.rs style: Implement the counter-set property. 2019-03-27 14:29:21 +01:00
easing.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
effects.rs style: rustfmt recent changes. 2019-07-08 12:45:56 +02:00
flex.rs style: Use Rust sizes for flex-basis, width, height, and their min/max properties. 2019-02-23 21:02:18 -08:00
font.rs style: Don't clamp font-size calc() factors too early. 2019-09-12 22:07:45 +02:00
image.rs Rustfmt and fix tidy on recent changes. 2019-06-25 13:11:31 +02:00
length.rs style: Don't clamp font-size calc() factors too early. 2019-09-12 22:07:45 +02:00
list.rs style: Add an 'auto' value for the CSS 'quotes' property, and make it use language-dependent quote marks. 2019-07-23 22:53:59 +02:00
mod.rs style: Don't clamp font-size calc() factors too early. 2019-09-12 22:07:45 +02:00
motion.rs style: Animate offset-rotate. 2019-06-04 01:03:50 -04:00
outline.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
percentage.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
position.rs style: Support offset-anchor. 2019-08-15 16:58:02 +02:00
rect.rs style: Use Rust types for some misc properties. 2019-02-23 21:04:33 -08:00
resolution.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
svg.rs style: Rustfmt recent changes. 2019-07-08 12:56:47 +02:00
table.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
text.rs style: Fix formatting of recent changes. 2019-08-15 17:02:37 +02:00
time.rs style: Derive ToResolvedValue. 2019-04-12 12:20:09 +02:00
transform.rs style: Update to euclid 0.20. 2019-07-23 22:54:08 +02:00
ui.rs style: Use the rust color representation. 2019-04-12 12:19:59 +02:00
url.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00