← Back to release summary

Allow infinity, -infinity and NaN in CSS calc()

Category
CSS
Type
Chromium catches up
Status
Enabled by default (Chrome 99)
Intent stage
Shipped

Summary

CSS calc() math function should allow infinity and NaN values by 'infinity', '-infinity', 'NaN' keywords or expressions that could be evaluated into infinity or NaN such as 'calc(1/0)'.

Motivation

This feature improves conformance with the spec.

Standards & signals

Docs: https://bit.ly/349gXjq

Explainers: https://github.com/DevSDK/calc-infinity-and-NaN/blob/master/explainer.md

View on chromestatus.com