Closed
Bug 1802146
Opened 1 year ago
Closed 1 year ago
Use root element font size for rem calculation in Container queries
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
FIXED
109 Branch
Tracking | Status | |
---|---|---|
firefox109 | --- | fixed |
People
(Reporter: zsun, Assigned: zsun)
Details
Attachments
(1 file)
In https://drafts.csswg.org/css-values/#font-relative-lengths, it says "When used outside the context of an element (such as in media queries), the font-relative lengths units refer to the metrics corresponding to the initial values of the font and line-height properties."
This has been applied for media queries while calculating font-relative Lengths for rem. However, not sure the same rule should apply for Container Queries. For Container Queries, root font size should be used instead.
Summary: Use root font-relative lengths for rem calculation in Container queries → Use root element font size for rem calculation in Container queries
Updated•1 year ago
|
Assignee: nobody → zsun
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/02fe36bf9c9b Use root element font size for rem calculation in Container queries. r=emilio
Comment 3•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•