html-browser-tester 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser-test.js +2 -0
- package/package.json +1 -1
package/lib/browser-test.js
CHANGED
@@ -85,6 +85,7 @@ class BrowserTester {
|
|
85
85
|
const iframe = document.createElement('iframe');
|
86
86
|
const body = document.querySelector('body');
|
87
87
|
this.iframe = iframe;
|
88
|
+
iframe.style.position = 'absolute';
|
88
89
|
iframe.style.opacity = '0';
|
89
90
|
iframe.style.pointerEvents = 'none';
|
90
91
|
iframe.src = url;
|
@@ -134,6 +135,7 @@ class BrowserTester {
|
|
134
135
|
resolve(results);
|
135
136
|
};
|
136
137
|
iframe.addEventListener('load', iframeCallback);
|
138
|
+
iframe.classList.add('browser-test');
|
137
139
|
body.appendChild(iframe);
|
138
140
|
});
|
139
141
|
}
|