Closed Bug 1814469 Opened 1 year ago Closed 1 year ago

[css-values] Implement CSS exponential functions

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: emilio, Assigned: zqianem, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete, good-first-bug)

Attachments

(1 file)

wpt.fyi dashboard

This bug is about implementing the remaining math functions that we don't support inside calc().

Code for existing math functions is in here, and it should be trivial to expand to the new functions.

Functions that need implementing are:

They can probably be implemented each in separate bugs. Happy to help someone implement this or take it, should be relatively straight-forward and there are tests already (see above).

See Also: → 1814588
Assignee: nobody → zqianem
Status: NEW → ASSIGNED

The hypot() function doesn't fully work yet because there is no way to negate it by changing its arguments. Should we look into adding a Negate node? The abs() function will also run into this issue.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a429c31909d3
Implement CSS exponential functions. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/38818 for changes under testing/web-platform/tests
Duplicate of this bug: 1785118
Keywords: dev-doc-needed
Summary: [css-values] Implement remaining math functions in calc() → [css-values] Implement CSS exponential functions
Blocks: css-values-4
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Upstream PR merged by moz-wptsync-bot

Associated Pull Requests

Is this going to be released in 112?

It is currently not work in 112.0.2 (64-bit) on MacOS

Blocks: 1837342

(In reply to Dave Letorey from comment #9)

Is this going to be released in 112?

It is currently not work in 112.0.2 (64-bit) on MacOS

Late-breaking answer: no, this is behind about:config pref layout.css.exp.enabled which is still Nightly-only for now, according to:

https://searchfox.org/mozilla-central/rev/887d4b5da89a11920ed0fd96b7b7f066927a67db/modules/libpref/init/StaticPrefList.yaml#8257-8258,8260

Until that changes, this won't be enabled by default in Firefox release versions.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: