mod()

Read More at MDN DocsView Spec

Safe to Use

Experimental: This feature is experimental. Learn More

mod() is not safe to use.

It’s supported by 20% of global browsers.

Browsers

ChromeUnsupported
Chrome does not support this feature.
SafariMar 15, 2022v15.4.0
5%83%
There are no users of Safari running a supported version.
EdgeUnsupported
Edge does not support this feature.
FirefoxUnsupported
Firefox does not support this feature.

Version Breakdown

 
Agent
Support
Adoption
Chrome
Unsupported
Chrome does not support this feature.

No Support

Chrome Android
Unsupported
Chrome Android does not support this feature.

No Support

Edge
Unsupported
Edge does not support this feature.

No Support

Firefox
Unsupported
Firefox does not support this feature.
Jan 17, 2023 – Latest
v109.0.0+
2%91%

This feature is behind the layout.css.mod-rem.enabled preference (needs to be set to true

Firefox for Android
Unsupported
Firefox for Android does not support this feature.

No Support

Internet Explorer
Unsupported
Internet Explorer does not support this feature.

No Support

 
Quest Browser
Unsupported
Quest Browser does not support this feature.

No Support

Opera
Unsupported
Opera does not support this feature.

No Support

Opera Android
Unsupported
Opera Android does not support this feature.

No Support

Safari
Mar 15, 2022 v15.4.0
5%83%
There are no users of Safari running a supported version.
Mar 15, 2022 – Latest
v15.4.0+
5%83%

Full Support

Safari on iOS
Mar 15, 2022 v15.4.0
15%91%
There are no users of Safari on iOS running a supported version.
Mar 15, 2022 – Latest
v15.4.0+
15%91%

Full Support

Samsung Internet
Unsupported
Samsung Internet does not support this feature.

No Support

WebView Android
Unsupported
WebView Android does not support this feature.

No Support

See Also

Contribute