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

Side by Side Diff: LayoutTests/fast/frames/seamless/seamless-min-max.html

Issue 138443013: Remove iframe@seamless (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Include remove tests Created 6 years, 11 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <div id="parent" style="width: 200px; height: 200px;">
4 <iframe id="iframe1" seamless style="min-width: 300px; min-height: 300px " src=" resources/square.html"></iframe>
5 <iframe id="iframe2" seamless style="max-width: 50px; max-height: 50px" src="res ources/square.html"></iframe>
6 </div>
7 <script>
8 debug("Test that seamless iframes respect min/max height/width CSS styles.")
9 window.onload = function () {
10 window.iframe1 = document.getElementById("iframe1");
11 window.iframe2 = document.getElementById("iframe2");
12
13 // Seamless should respect min/max CSS values like any other element.
14 shouldBeEqualToString("window.getComputedStyle(iframe1).width", "300px");
15 shouldBeEqualToString("window.getComputedStyle(iframe1).height", "300px");
16
17 shouldBeEqualToString("window.getComputedStyle(iframe2).width", "50px");
18 shouldBeEqualToString("window.getComputedStyle(iframe2).height", "50px");
19 }
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698