Use visibility: hidden to hide webviews

This commit is contained in:
Thomas Brouard 2017-09-14 17:39:15 +02:00
parent b579379d88
commit 0b078d235d

View file

@ -8,12 +8,12 @@ if (!document) {
(function () { (function () {
const styles = ` const styles = `
webview { webview {
display: flex; visibility: hidden;
flex: 0 1;
width: 0px; width: 0px;
height: 0px; height: 0px;
} }
webview.visible { webview.visible {
visibility: visible;
width: 100%; width: 100%;
height: 100%; height: 100%;
top: 0; top: 0;