Closed Bug 1967315 Opened 1 year ago Closed 1 year ago

Evaluation of font-relative units in container queries does not recognize user fonts

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(1 external file)

Several subtests in css/css-conditional/container-queries/font-relative-units.html will fail if Ahem is not installed locally, because when evaluating font-relative units in the container queries, the webfont is ignored.

This is because the code at https://searchfox.org/mozilla-central/rev/578d9c83f046d8c361ac6b98b297c27990d468fd/servo/components/style/values/computed/mod.rs#395-397 ignores the user font set if in_media_or_container_query() is true. Probably it should only test in_media_query, as it seems reasonable for container queries to depend on a webfont.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/187add9d02b3 Container queries can use font metrics from the user font set. r=firefox-style-system-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: