Cyclic dependency on a custom property with an em unit breaks unrelated custom properties using ems
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: kizmarh, Assigned: dshin)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
844 bytes,
text/html
|
Details | |
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
RyanVM
:
approval-mozilla-esr128+
|
Details | Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0
Steps to reproduce:
- Open https://codepen.io/kizu/pen/raBwegm (or the attached .html copy)
- Look at the font-size
OR
- Add a
font-size
that uses a custom property which usesem
unit. - Specify another unrelated custom property that contains a cyclic dependency (involving itself or other custom properties), AND a mention of the
em
unit somewhere.
Actual results:
The text is not affected by the change in font-size: the text on the page stays in the default font-size.
Expected results:
The font-size
that uses a custom property and em
unit should work: the text in the CodePen should get its font-size increased from all three elements involved: html
, body
and .test
.
Comment 1•1 month ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 month ago
|
||
Thanks for reporting and sharing a reduced testcase!
Bisection:
Bug 1855110: Part 3 - Properly resolve registered custom properties using font-relative units. r=firefox-style-system-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D196195
Comment 3•1 month ago
|
||
Set release status flags based on info from the regressing bug 1855110
Comment 4•1 month ago
|
||
(ni?ing David too in case he gets to take a look sooner than me)
Assignee | ||
Comment 5•1 month ago
|
||
Updated•1 month ago
|
Updated•29 days ago
|
Assignee | ||
Updated•29 days ago
|
Updated•17 days ago
|
Comment 9•16 days ago
|
||
bugherder |
Comment 10•14 days ago
|
||
The patch landed in nightly and beta is affected.
:dshin, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox135
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Comment 11•14 days ago
|
||
Comment on attachment 9444997 [details]
Bug 1938927: Cyclic dependencies consisting only of non-computed custom properties should not mark any non-custom property as invalid-at-computed time. r=#style
Beta/Release Uplift Approval Request
- User impact if declined/Reason for urgency: Valid registered custom property considered invalid & not applying
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Small change + WPT test (
non-computed-unit-cycles.html
) + 2 weeks passed to filter out any perf issue - String changes made/needed: None
- Is Android affected?: Yes
Updated•14 days ago
|
Comment 12•14 days ago
•
|
||
Comment on attachment 9444997 [details]
Bug 1938927: Cyclic dependencies consisting only of non-computed custom properties should not mark any non-custom property as invalid-at-computed time. r=#style
Approved for 135.0b3 and 128.7esr.
Comment 13•14 days ago
|
||
uplift |
Updated•14 days ago
|
Updated•4 days ago
|
Updated•4 days ago
|
Updated•4 days ago
|
Comment 14•4 days ago
|
||
uplift |
Updated•1 day ago
|
Description
•