Created
April 8, 2021 13:17
-
-
Save EvgenyArtemov/1b454e5a0df1236578de75906d31b20a to your computer and use it in GitHub Desktop.
SASS target only Firefox
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
@mixin firefox-only { | |
@at-root { | |
@-moz-document url-prefix() { | |
& { | |
@content; | |
} | |
} | |
} | |
} | |
tag { | |
prop: value; | |
&[attr1=value1], | |
&[attr2=value2] { | |
@include firefox-only { | |
prop: value; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment