From 2f64ef0d8151663bdc26c98c44c35fbfbc05d70f Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Wed, 4 Jan 2023 07:55:12 +0000 Subject: [PATCH] style: Compute font-size-adjust early, so that we get the correct used font size for font-dependent units Differential Revision: https://phabricator.services.mozilla.com/D165842 --- components/style/properties/properties.mako.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 21d086e7177..5c052bec73f 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -925,9 +925,10 @@ CASCADE_GROUPS = { "-moz-min-font-size-ratio", # font-size depends on math-depth's computed value. "math-depth", - # Needed to compute the first available font, in order to - # compute font-relative units correctly. + # Needed to compute the first available font and its used size, + # in order to compute font-relative units correctly. "font-size", + "font-size-adjust", "font-weight", "font-stretch", "font-style",