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

Side by Side Diff: LayoutTests/svg/as-iframe/svg-in-iframe.html

Issue 246933007: Make <iframe> containing SVG behave as every other <iframe> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add NeedsRebaseline to test for landing Created 6 years, 8 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/rendering/RenderEmbeddedObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>iframe { border:none }</style>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <iframe src="../as-image/resources/200x200-blue-rect.svg">
6 </iframe>
7 <script>
8 t = async_test("Test <iframe> and <svg> size");
9 function check() {
10 var iframe = document.querySelector('iframe');
11 var svg = iframe.contentDocument.documentElement;
12
13 assert_equals(iframe.offsetWidth, 300, "width should be fallback width." );
14 assert_equals(iframe.offsetHeight, 150, "height should be the fallback h eight 150.");
15 assert_equals(svg.offsetWidth, svg.width.baseVal.value, "width should be what the <svg> requests.");
16 assert_equals(svg.offsetHeight, svg.height.baseVal.value, "height should be what the <svg> requests.");
17
18 t.done();
19 }
20 t.step(function() {
21 addEventListener('load', t.step_func(check));
22 });
23 </script>
24 <div id="log"></div>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | Source/core/rendering/RenderEmbeddedObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698