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

Side by Side Diff: LayoutTests/svg/custom/svg-percent-scale-vonly.html

Issue 9617034: Merge 109104 - Percent width/height SVG not always scaled on window resize (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/repaint/resources/repaint.js"></script> 4 <script src="../../fast/repaint/resources/repaint.js"></script>
5 </head> 5 </head>
6 6
7 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runRepaintTest()" > 7 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runRepaintTest()" >
8 8
9 <div style="width: 100%; height: 100%; position: absolute; align: left;"> 9 <div style="width: 100%; height: 100%; position: absolute; align: left;">
10 <!-- After vertical window resizing, this SVG element should not be visible --> 10 <!-- After vertical window resizing, this SVG element should not be visible -->
11 <svg width="50%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 00 600"> 11 <svg width="50%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 00 600">
12 <rect fill="red" width="200" height="200"></rect> 12 <rect fill="red" width="200" height="200"></rect>
13 </svg> 13 </svg>
14 14
15 <!-- force an anonymous block creation to exercise the percent-height descendant s map --> 15 <!-- force an anonymous block creation to exercise the percent-height descendant s map -->
16 <div></div> 16 <div></div>
17 </div> 17 </div>
18 18
19 <div style="width: 100px; height: 100px; position: absolute; background-color: g reen;"></div> 19 <div style="width: 100px; height: 100px; position: absolute; background-color: g reen;"></div>
20 20
21 <script> 21 <script>
22 function repaintTest() { 22 function repaintTest() {
23 window.resizeBy(0, -window.innerHeight / 2); 23 window.resizeBy(0, -window.innerHeight / 2);
24 } 24 }
25 </script> 25 </script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/svg-percent-scale-expected.html ('k') | LayoutTests/svg/custom/svg-percent-scale-vonly-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698