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:
committed by
jkew@mozilla.com
parent
894dc1cc31
commit
a47b164ea1
@@ -392,7 +392,7 @@ impl<'a> Context<'a> {
|
|||||||
FontMetricsOrientation::MatchContextPreferVertical => wm.is_text_vertical(),
|
FontMetricsOrientation::MatchContextPreferVertical => wm.is_text_vertical(),
|
||||||
FontMetricsOrientation::Horizontal => false,
|
FontMetricsOrientation::Horizontal => false,
|
||||||
};
|
};
|
||||||
if !self.in_media_or_container_query() {
|
if !self.in_media_query {
|
||||||
flags |= QueryFontMetricsFlags::USE_USER_FONT_SET
|
flags |= QueryFontMetricsFlags::USE_USER_FONT_SET
|
||||||
}
|
}
|
||||||
self.device().query_font_metrics(
|
self.device().query_font_metrics(
|
||||||
|
|||||||
@@ -1,19 +1,4 @@
|
|||||||
[font-relative-units.html]
|
[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]
|
[rex relative inline-size]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user