← Back to release summary

Support calc(<number>) where only accepts <integer>

Category
CSS
Type
Chromium catches up
Status
Enabled by default (Chrome 97)
Intent stage
None

Summary

CSS math functions that resolve to <number> can be used in any place that only accepts <integer>. (It gets rounded to the nearest integer, as specified in https://drafts.csswg.org/css-values-4/#calc-range)

Standards & signals

View on chromestatus.com