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

Unified 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: alexmos@ comment#20 addressed. but layouttest still not working with flag Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html b/third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html
new file mode 100644
index 0000000000000000000000000000000000000000..38bef7509e45dcdd202306d9ea794a77d89e96e1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/frames/script-modify-iframe-attr.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
alexmos 2016/11/22 05:13:10 Perhaps this should go under http/tests/misc inste
+
+<script>
+window.onload = () => {
+ var ifr = document.getElementById('ifr');
+ ifr.scrolling = 'no';
+ ifr.marginWidth = '50';
+ ifr.marginHeight = '100';
+};
+</script>
+
+<iframe id="ifr" scrolling="yes" style="width:200px;height:200px;"
+ src="http://localhost:8000/frames/resources/subframe.html">
+</iframe>

Powered by Google App Engine
This is Rietveld 408576698