diff --git a/testing/iframe.js b/testing/iframe.js index ae6d2c6276ab..ad235f225f9c 100644 --- a/testing/iframe.js +++ b/testing/iframe.js @@ -198,8 +198,7 @@ export function createIframePromise(opt_runtimeOff, opt_beforeLayoutCallback) { let iframe = document.createElement('iframe'); iframe.name = 'test_' + iframeCount++; iframe.srcdoc = '' + - '' + - '
'; + '
'; iframe.onload = function() { // Flag as being a test window. iframe.contentWindow.AMP_TEST_IFRAME = true; @@ -224,8 +223,6 @@ export function createIframePromise(opt_runtimeOff, opt_beforeLayoutCallback) { addElement: function(element) { const iWin = iframe.contentWindow; const p = onInsert(iWin).then(() => { - // Make sure it has dimensions since no styles are available. - element.style.display = 'block'; element.build(true); if (!element.getPlaceholder()) { const placeholder = element.createPlaceholder();