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

Side by Side Diff: LayoutTests/svg/custom/absolute-sized-content-with-resources.xhtml

Issue 26390004: Rework SVG sizing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix mishap during rebase in svg.css 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
OLDNEW
1 <html xmlns="http://www.w3.org/1999/xhtml"> 1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head> 2 <head>
3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 3 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
4 </head> 4 </head>
5 <body onload="runRepaintAndPixelTest()"> 5 <body onload="runRepaintAndPixelTest()">
6 <p>The svg area contained in the div element (red box), should contain four masked circles, that do not pixelate after resizing</p> 6 <p>The svg area contained in the div element (red box), should contain four masked circles, that do not pixelate after resizing</p>
7 <div id="contentBox" style="width: 100px; height: 400px; border: 1px solid r ed;"> 7 <div id="contentBox" style="width: 100px; height: 400px; border: 1px solid r ed;">
8 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1 999/xlink" viewBox="20 15 60 50"> 8 <svg xmlns="http://www.w3.org/2000/svg" viewBox="20 15 60 50" height="10 0%" width="100%">
9 <defs> 9 <defs>
10 <linearGradient id="gradient" x1="0" x2="1" y1="0" y2="1" color-inte rpolation="linearRGB"> 10 <linearGradient id="gradient" x1="0" x2="1" y1="0" y2="1" color-inte rpolation="linearRGB">
11 <stop offset="0" stop-color="blue" /> 11 <stop offset="0" stop-color="blue" />
12 <stop offset="1" stop-color="red" /> 12 <stop offset="1" stop-color="red" />
13 </linearGradient> 13 </linearGradient>
14 14
15 <mask id="mask" maskUnits="userSpaceOnUse" x="25" y="20" width="50" height="40"> 15 <mask id="mask" maskUnits="userSpaceOnUse" x="25" y="20" width="50" height="40">
16 <circle cx="25" cy="20" r="20" fill="#ffffff" /> 16 <circle cx="25" cy="20" r="20" fill="#ffffff" />
17 <circle cx="25" cy="60" r="20" fill="#ffffff" /> 17 <circle cx="25" cy="60" r="20" fill="#ffffff" />
18 <circle cx="75" cy="20" r="20" fill="#ffffff" /> 18 <circle cx="75" cy="20" r="20" fill="#ffffff" />
19 <circle cx="75" cy="60" r="20" fill="#ffffff" /> 19 <circle cx="75" cy="60" r="20" fill="#ffffff" />
20 </mask> 20 </mask>
21 </defs> 21 </defs>
22 22
23 <g fill="url(#gradient)"> 23 <g fill="url(#gradient)">
24 <rect width="100" height="80" mask="url(#mask)" /> 24 <rect width="100" height="80" mask="url(#mask)" />
25 </g> 25 </g>
26 </svg> 26 </svg>
27 </div> 27 </div>
28 <script> 28 <script>
29 function repaintTest() { 29 function repaintTest() {
30 document.getElementById("contentBox").style.setProperty("width", "40 0px"); 30 document.getElementById("contentBox").style.setProperty("width", "40 0px");
31 } 31 }
32 </script> 32 </script>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698