Web features explorer

Numeric factory functions

Limited availability
Tags: api Groups: CSS > CSS object models

The numeric factory functions, such as CSS.px() or CSS.kHz(), return a CSSUnitValue representing a CSS number value (as in 12px or 440kHz).

Learning resources on MDN

Browser support

Baseline availability blocked since December 2023 by Firefox (12 months)