Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infinite animation on the body to solve the general/adjacent sibling …
…selector bug #45168 in WebKit (Android <= 4.1.2) causes high CPU/GPU load due to the rendering engine reflow calculations as mentioned in http://css-tricks.com/webkit-sibling-bug/ . Wrapping the label and the menu within a div enables us to use a selector chain that does not require any animation and still works across all browsers. This does not cause reflows / layout thrashing and has been successfully tested. Thanks to http://stackoverflow.com/a/14201802 for the input on how to fix it.
- Loading branch information
1 parent
ae6c8e4
commit 62ef965
Showing
2 changed files
with
13 additions
and
14 deletions.
There are no files selected for viewing
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
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