Answers for "safari css media query"

CSS
0

safari css media query

Chrome & Safari (any version)
@media screen and (-webkit-min-device-pixel-ratio:0) { 
    property: value;
}

 Safari (7.1+)
_::-webkit-full-page-media, _:future, :root .safari_only {
    property: value;
}

Safari (from 6.1 to 10.0) affects ALL browsers on iPad Not only Safari.
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) { 
    @media {
        .safari6 { 
            color:#0000FF; 
            background-color:#CCCCCC; 
        }
    }
}

Safari (10.1+)
@media not all and (min-resolution:.001dpcm) { 
    @media {
        .safari10 { 
            color:#0000FF; 
            background-color:#CCCCCC; 
        }
    }
}
Posted by: Guest on September-14-2021

Browse Popular Code Answers by Language