Last active
June 20, 2022 19:06
-
-
Save pokedotdev/1f4ba961601692480c093b3ee90028ab to your computer and use it in GitHub Desktop.
CSS support rules. https://www.bram.us/2021/06/23/css-at-supports-rules-to-target-only-firefox-safari-chromium/
This file contains hidden or 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
/* Firefox Only */ | |
@supports (-moz-appearance: none) {} | |
/* Chromium Only */ | |
@supports (contain: paint) and (not (-moz-appearance: none)) {} | |
/* Chromium + Firefox */ | |
@supports (contain: paint) {} | |
/* Chromium + Safari */ | |
@supports (not (-moz-appearance: none)) {} | |
/* Safari Only */ | |
@supports selector(:nth-child(1 of x)) {} | |
/* (Safari + MobileSafari >= 14.6) or (All MobileSafari versions) */ | |
@supports (selector(:nth-child(1 of x))) or (-webkit-touch-callout: none) {} | |
/* Safari + Firefox */ | |
@supports (-webkit-touch-callout: none) or (selector(:nth-child(1 of x))) or (-moz-appearance: none) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment