I have tested this cod in some browsers. and apparently works like a hack
for safari in general.
@media only screen and (-webkit-min-device-pixel-ratio: 1) {
::i-block-chrome, "seuseletor" {
attr: valor;
}
}
Eg:
@media only screen and (-webkit-min-device-pixel-ratio: 1) {
::i-block-chrome, h1 {
color: red;
}
}
This will make the h1
elements look 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 need only a specific screen size you can associate one more condition with @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.