[css-values] Implement CSS exponential functions
Categories
(Core :: CSS Parsing and Computation, task)
Tracking
()
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)
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:
- Exponential functions (https://drafts.csswg.org/css-values-4/#exponent-funcs)
- Sign related functions (https://drafts.csswg.org/css-values-4/#sign-funcs)
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).
Updated•2 years ago
|
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.
Updated•2 years ago
|
Updated•2 years ago
|
Comment 6•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 8•2 years ago
|
||
Associated Pull Requests
Comment 9•2 years ago
|
||
Is this going to be released in 112?
It is currently not work in 112.0.2 (64-bit) on MacOS
Comment 10•1 years ago
|
||
(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:
Until that changes, this won't be enabled by default in Firefox release versions.
Description
•