Created
January 19, 2012 14:42
-
-
Save barneycarroll/1640387 to your computer and use it in GitHub Desktop.
Force hardware acceleration on dynamically styled elements for Webkit mobile.
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
@media(-webkit-min-device-pixel-ratio:1.1){ | |
/* Media query restricts to mobile: avoid Chrome purple scroll bars */ | |
[style] { | |
-webkit-transform: translateZ(0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment