I tested on some browsers this Cod. and apparently works as a hack
for safari in general.
@media only screen and (-webkit-min-device-pixel-ratio: 1) {
::i-block-chrome, "seuseletor" {
attr: valor;
}
}
Ex.:
@media only screen and (-webkit-min-device-pixel-ratio: 1) {
::i-block-chrome, h1 {
color: red;
}
}
This will make the elements h1
turn red.
in your case:
@media only screen and (-webkit-min-device-pixel-ratio: 1) {
::i-block-chrome, .sdn-music-player>.yt-wrap>iframe {
left: -22px;
position: absolute;
top: -126px;
}
}
Now if you only need for a specific screen size you can associate one more condition to the @media query
.
Ex.:
@media only screen and (-webkit-min-device-pixel-ratio: 1) and (min-width: 700px) { }
you can see more examples of Mquery here.
This would not be the case to use the
@media querys
– Victor Saul