Closed Bug 1875673 Opened 10 months ago Closed 10 months ago

`env()` in CSS variables incorrect

Categories

(Core :: CSS Parsing and Computation, defect, P2)

Firefox 123
defect

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox122 --- unaffected
firefox123 + fixed
firefox124 + fixed

People

(Reporter: 709922234, Assigned: dshin)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

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

Steps to reproduce:

https://codepen.io/mantou132/pen/poYwwBK?editors=1100

Actual results:

Gray block height is not 100%

Expected results:

Gray block height is 100%

Component: Untriaged → Layout
Product: Firefox → Core
See Also: → 1875557

Mozregression points to Bug 1855110 Part 3 causing this.

Component: Layout → CSS Parsing and Computation
Keywords: regression
Regressed by: 1855110
Status: UNCONFIRMED → NEW
Ever confirmed: true

:dshin, since you are the author of the regressor, bug 1855110, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(dshin)

[Tracking Requested - why for this release]: we shouldn't ship this regression

emilio, can we get a severity set on this one? Thanks

Priority: -- → P1

Severity probably depends on whether this breaks websites, but it seems somewhat likely, specially for mobile sites, so let's go with S2. I don't expect the fix here to be super-complicated.

Severity: -- → S2
Priority: P1 → P2
Assignee: nobody → dshin
Flags: needinfo?(dshin)
Attachment #9375804 - Attachment description: Bug 1875673: Do not prevent early substitution of for unregistered variable when they reference font-relative properties. r=#style → Bug 1875673: Do not prevent early substitution of for non-registered or registered non-length variables when they reference font-relative properties. r=#style
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d9365402e22a Do not prevent early substitution of for non-registered or registered non-length variables when they reference font-relative properties. r=firefox-style-system-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/44142 for changes under testing/web-platform/tests
Duplicate of this bug: 1875970
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Upstream PR merged by moz-wptsync-bot

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

For more information, please visit BugBot documentation.

Flags: needinfo?(dshin)

Comment on attachment 9375804 [details]
Bug 1875673: Do not prevent early substitution of for non-registered or registered non-length variables when they reference font-relative properties. r=#style

Beta/Release Uplift Approval Request

  • User impact if declined: Bug 1875673 comment 0
    In the field, Bug 1875970 comment 0 (Though on shippable builds, it'd just give a "wrong" result rather than asserting)
    Confirmed fix through mozregression --launch 2024-01-24 and navigating to codepen example in Bug 1875673 comment 0
  • 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): Fix is simple (Adding one more logical check), WPT covers the usage well
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(dshin)
Attachment #9375804 - Flags: approval-mozilla-beta?

Comment on attachment 9375804 [details]
Bug 1875673: Do not prevent early substitution of for non-registered or registered non-length variables when they reference font-relative properties. r=#style

Approved for 123 beta 3, thanks.

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

Attachment

General

Creator:
Created:
Updated:
Size: