From b30fc972d9280215eb1138a142c90e36de3440a6 Mon Sep 17 00:00:00 2001 From: Ali Ghassemi Date: Wed, 19 Oct 2016 14:55:30 -0700 Subject: [PATCH] Remove unneeded styles from test iframe (#5652) --- testing/iframe.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/testing/iframe.js b/testing/iframe.js index ae6d2c6276aba..ad235f225f9c4 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();