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

Side by Side Diff: LayoutTests/svg/custom/inline-svg-use-available-width-in-stf.html

Issue 341773004: Use available width for replaced element with intrinsic ratio but no dimensions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase and add NeedsRebaseline to zoom test with off-by-one (or so) errors Created 6 years, 6 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
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <style>
5 .specwidth { width: 400px }
6 .stf { float: left; }
7 .test { display: block; background-color: red }
8 .sizer { width: 200px }
9 .control { /* overlay to hide the red */
10 position: absolute;
11 width: 200px;
12 height: 200px;
13 background-color: green;
14 }
15 </style>
16 <body>
17 <div class="specwidth">
18 <div class="stf">
19 <svg class="test" viewBox="0 0 1 1">
20 </svg>
21 <div class="sizer">
22 </div>
23 </div>
24 </div>
25 <div class="control">
26 </div>
27 <script>
28 test(function() {
29 var bounds = document.querySelector('.test').getBoundingClientRect();
30 assert_equals(bounds.width, 200);
31 assert_equals(bounds.height, 200);
32 }, "Use available width and use intrinsic ratio to compute height");
33 </script>
34 </body>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/inline-svg-use-available-width.html ('k') | Source/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698