Closed Bug 1830759 Opened 1 year ago Closed 1 year ago

Enable CSS inf/nan by default

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
relnote-firefox --- 114+
firefox114 --- fixed

People

(Reporter: canadahonk, Assigned: canadahonk)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

Turn on CSS infinity and NaN handling (in calc() funcs) by default. Our implementation is currently better than other engines in WPT tests, and Chromium has had it enabled since 99 (~March 2022): https://chromestatus.com/feature/5657825571241984. It has been enabled in Nightly without any issues.

Spec: https://drafts.csswg.org/css-values/#ref-for-math-function%E2%91%A1%E2%91%A0

Intent needed. Also, MDN compat data is completely wrong for this feature for most engines (https://developer.mozilla.org/en-US/docs/Web/CSS/calc-constant#browser_compatibility).

Enable the CSS infinity/NaN calc constants by default.

Blocks: 1814589
Pushed by oj@oojmed.com:
https://hg.mozilla.org/integration/autoland/rev/5bfbaed628a1
Enable CSS inf/nan by default r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch

Docs changes for this can be tracked on the following GitHub issue: https://github.com/mdn/content/issues/26693

Release Note Request (optional, but appreciated)
[Why is this notable]: CSS feature now enabled by default (will be on in 114)
[Affects Firefox for Android]: Yes
[Suggested wording]: Not sure exactly. It has been nightly only for quite a while and supported in other browsers pretty long (Chrome >a year, WebKit for a while) for reference.
[Links (documentation, blog post, etc)]: No good docs/posts for this yet?

Not in 114 beta release notes yet so doing this request :)

relnote-firefox: --- → ?

Added to our public beta notes with this wording:

CSS: The infinity and NaN constants are now supported inside the calc() function.

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

Attachment

General

Created:
Updated:
Size: