Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions core/src/css/structure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,28 @@ body {
height: 100%;
max-height: 100%;

/**
* Because body has position: fixed,
* it should be promoted to its own
* layer.
*
* WebKit does not always promote
* the body to its own layer on page
* load in Ionic apps. Once scrolling on
* ion-content starts, WebKit will promote
* body. Unfortunately, this causes a re-paint
* which results in scrolling being halted
* until the next user gesture.
*
* This impacts the Custom Elements build.
* The lazy loaded build causes the browser to
* re-paint during hydration which causes WebKit
* to promote body to its own layer.
* In the CE Build, this hydration does not
* happen, so the additional re-paint does not occur.
*/
transform: translateZ(0);

text-rendering: optimizeLegibility;

overflow: hidden;
Expand Down