round(), mod(), and rem()
Newly available since 2024-05-17
The round()
, mod()
, and rem()
CSS functions compute rounded values and the remainder after division.
Specifications
Browser support
- Chrome 125 Released on 2024-05-14
- Chrome Android 125 Released on 2024-05-14
- Edge 125 Released on 2024-05-17
- Firefox 118 Released on 2023-09-26
- Firefox for Android 118 Released on 2023-09-26
- Safari 15.4 Released on 2022-03-14
- Safari on iOS 15.4 Released on 2022-03-14
Developer signals
- State of CSS 2025: reading_list/reading_list question
- State of CSS 2025: features/all_features question
- State of CSS 2024: features/all_features question
Usage (according to Chrome Platform Status)
~0.362% of page loads. More data at chromestatus.
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist