MOBILE-2433 core: Fix iframes in fullscreen mode

main
Albert Gasset 2018-07-10 16:48:52 +02:00
parent 60c5ff9bc5
commit ab415d6406
2 changed files with 20 additions and 1 deletions

View File

@ -832,3 +832,20 @@ body.keyboard-is-open core-ion-tabs .tabbar {
pointer-events: none;
}
}
// Fix iframes in fullscreen mode.
//
// Ionic sets "contain: strict" to some elements. This enables paint containment,
// which changes behaviour of fixed positioned elements and seems to break iframes
// in fullscreen mode. See https://www.w3.org/TR/css-contain-1/#containment-paint
ion-app,
ion-nav,
ion-tab,
ion-tabs,
.app-root,
.ion-page,
ion-modal,
.modal-wrapper,
.split-pane {
contain: size layout style;
}

View File

@ -43,7 +43,9 @@ core-ion-tabs, core-ion-tab {
width: 100%;
height: 100%;
overflow: hidden;
contain: strict;
// Do not use "contain: strict" so fullscreen iframes work.
contain: size layout style;
}
core-ion-tab {