Last active
January 22, 2024 19:44
-
-
Save ryanmorr/72f186ba4754b1e79023af70fb889568 to your computer and use it in GitHub Desktop.
Check if the browser supports some cutting edge at-rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function supportsContainerQueries() { | |
return !!window.CSSContainerRule; | |
} | |
function supportsCustomPropertyDefinitions() { | |
return !!window.CSSPropertyRule; | |
} | |
function supportsScopedCSS() { | |
return !!window.CSSScopeRule; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment