Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html

Issue 2507023002: Support script modify iframe scrolling, marginWidth and marginHeight attr (Closed)
Patch Set: add postMessage to test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <script>
4 window.addEventListener("message", (event) => {
5 var ifr = document.getElementById('ifr');
6 ifr.scrolling = 'no';
7 ifr.marginWidth = '50';
8 ifr.marginHeight = '100';
9 if (testRunner)
10 testRunner.notifyDone();
11 });
12
13 window.onload = () => {
14 if (testRunner)
15 testRunner.waitUntilDone();
16 var ifr = document.getElementById('ifr');
17 ifr.contentWindow.postMessage({}, '*');
alexmos 2016/11/22 05:13:11 I think the scrolling/margin attributes should be
18 };
19 </script>
20
21 <iframe id="ifr" scrolling="yes" style="width:200px;height:200px;"
22 src="http://localhost:8000/frames/resources/subframe.html">
23 </iframe>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698