E
E
evilelf2015-09-22 12:22:39
HTML
evilelf, 2015-09-22 12:22:39

How to use @support in scss?

Hello!
How to use @supports css property in scss?

@mixin support($prop,$vars...){
    @supports "#{$prop}"{
        @each $key in $vars{
            .#{$key} {
                @content;
            }
        }
    }
}

this code throws an error.
@supports (background-clip:text) or (-webkit-background-clip:text) or (-moz-background-clip:text){
    
}

this code also throws an error.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-09-22
@evilelf

Forget it, it's generally unknown when normal cross-browser support will appear @supports. At a minimum, you need to wait for the death of IE9-11

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question