Numeric factory functions
Limited availability
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
- Chrome 118 Released on 2023-10-10
- Chrome Android 118 Released on 2023-10-10
- Edge 118 Released on 2023-10-13
- Firefox ❌ See bugzil.la/1278697
- Firefox for Android ❌ See bugzil.la/1278697
- Safari 17.2 Released on 2023-12-11
- Safari on iOS 17.2 Released on 2023-12-11
Baseline availability blocked since December 2023 by Firefox (12 months)