Bug 1967315 - Container queries can use font metrics from the user font set. r=firefox-style-system-reviewers,emilio

Differential Revision: https://phabricator.services.mozilla.com/D250076
This commit is contained in:
Jonathan Kew
2025-05-20 21:37:13 +00:00
committed by jkew@mozilla.com
parent 894dc1cc31
commit a47b164ea1
2 changed files with 1 additions and 16 deletions

View File

@@ -392,7 +392,7 @@ impl<'a> Context<'a> {
FontMetricsOrientation::MatchContextPreferVertical => wm.is_text_vertical(),
FontMetricsOrientation::Horizontal => false,
};
if !self.in_media_or_container_query() {
if !self.in_media_query {
flags |= QueryFontMetricsFlags::USE_USER_FONT_SET
}
self.device().query_font_metrics(

View File

@@ -1,19 +1,4 @@
[font-relative-units.html]
[ex relative inline-size]
expected:
if (os == "android"): PASS
[PASS, FAIL] # fails if Ahem is not installed locally
[ch relative inline-size]
expected:
if (os == "android"): PASS
[PASS, FAIL] # fails if Ahem is not installed locally
[cap relative inline-size]
expected:
if (os == "android"): PASS
[PASS, FAIL] # fails if Ahem is not installed locally
[rex relative inline-size]
expected: FAIL