Closed Bug 1938927 Opened 1 month ago Closed 16 days ago

Cyclic dependency on a custom property with an em unit breaks unrelated custom properties using ems

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 135
defect

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- fixed
firefox133 --- wontfix
firefox134 --- wontfix
firefox135 --- fixed
firefox136 --- fixed

People

(Reporter: kizmarh, Assigned: dshin)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0

Steps to reproduce:

  1. Open https://codepen.io/kizu/pen/raBwegm (or the attached .html copy)
  2. Look at the font-size

OR

  1. Add a font-size that uses a custom property which uses em unit.
  2. 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.

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.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

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

Status: UNCONFIRMED → NEW
Component: Layout: Text and Fonts → CSS Parsing and Computation
Ever confirmed: true
Flags: needinfo?(emilio)
Keywords: regression
Regressed by: 1855110

Set release status flags based on info from the regressing bug 1855110

(ni?ing David too in case he gets to take a look sooner than me)

Flags: needinfo?(dshin)
Assignee: nobody → dshin
Status: NEW → ASSIGNED
Attachment #9444997 - Attachment description: Bug 1938927: Cyclic dependencies consisting only of non-registered properties should not mark any non-custom property as invalid-at-computed time. r=#style → 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
Severity: -- → S3
Flags: needinfo?(emilio)
Flags: needinfo?(dshin)
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/84fa2a16d2fc Cyclic dependencies consisting only of non-computed custom properties should not mark any non-custom property as invalid-at-computed time. r=firefox-style-system-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/49919 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Status: ASSIGNED → RESOLVED
Closed: 16 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch

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 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(dshin)

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
Flags: needinfo?(dshin)
Attachment #9444997 - Flags: approval-mozilla-beta?
Flags: in-testsuite+

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.

Attachment #9444997 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9444997 - Flags: approval-mozilla-esr128?
Attachment #9444997 - Flags: approval-mozilla-esr128? → approval-mozilla-esr128+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: