Closed Bug 2040168 Opened 5 months ago Closed 5 months ago

Support computed-value-time calc() expressions for additional math functions (trig/exp)

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: sajidanwar, Assigned: sajidanwar)

References

Details

Attachments

(2 external files)

Bug 2035572 adds support for computed-value-time calc() expressions in general, but some math functions still don't currently support this. Specifically, the trigonometric functions (sin/cos/tan/asin/acos/atan/atan2) and most exponential functions (pow/sqrt/log/exp) are eagerly applied at parse time, which renders computed-value-time calc() expressions as invalid. For example, the following should be supported:

  • calc(sin(2 * pi * sibling-index() / sibling-count()))
  • calc(sqrt(100 - 50 * sign(100vw - 800px)))
Assignee: nobody → sajidanwar94
Status: NEW → ASSIGNED
No longer blocks: 2038218, 2038219, 2038512
No longer depends on: 2039780, 2038937
Depends on: 2035572
Blocks: 2042060
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/ead20ee98047 https://hg.mozilla.org/integration/autoland/rev/c5c0eda26a91 Support computed-value-time calc() expressions for additional math functions. r=firefox-style-system-reviewers,emilio

Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/60152 for changes under testing/web-platform/tests

Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4f3792c37af6 https://hg.mozilla.org/integration/autoland/rev/4c944a45e4b0 Fix integer property expectations in font-property-unit-cycles.tentative.html. r=#style
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch

Upstream PR merged by moz-wptsync-bot

QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: