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 66 Released on 2018-04-17
- Chrome Android 66 Released on 2018-04-17
- Edge 79 Released on 2020-01-15
- Firefox ❌ See bugzil.la/1278697
- Firefox for Android ❌ See bugzil.la/1278697
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 16.4 Released on 2023-03-27
Baseline availability blocked since March 2023 by Firefox (25 months)
Specifications
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature