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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/mask-invalidation.svg

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintAndPixelTest()"> 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" onload="runRepaintTest()">
3 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> 3 <script xlink:href="../../fast/repaint/resources/repaint.js"/>
4 <script> 4 <script>
5 window.testIsAsync = true; 5 window.testIsAsync = true;
6 function draw(x, y) { 6 function draw(x, y) {
7 var maskrect = document.getElementById("maskRect"); 7 var maskrect = document.getElementById("maskRect");
8 maskrect.setAttribute("transform", "translate(" + x + "," + y + ")"); 8 maskrect.setAttribute("transform", "translate(" + x + "," + y + ")");
9 9
10 var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect'); 10 var rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
11 rect.setAttribute("x", x); 11 rect.setAttribute("x", x);
12 rect.setAttribute("y", y); 12 rect.setAttribute("y", y);
13 rect.setAttribute("width", 453); 13 rect.setAttribute("width", 453);
(...skipping 19 matching lines...) Expand all
33 </script> 33 </script>
34 <defs> 34 <defs>
35 <mask id="mask" maskUnits="userSpaceOnUse" maskContentUnits="userSpaceOnUse"> 35 <mask id="mask" maskUnits="userSpaceOnUse" maskContentUnits="userSpaceOnUse">
36 <rect id="maskRect" x="50" y="50" width="460" height="316" fill="white" /> 36 <rect id="maskRect" x="50" y="50" width="460" height="316" fill="white" />
37 </mask> 37 </mask>
38 </defs> 38 </defs>
39 <g id="root"> 39 <g id="root">
40 <rect x="50" y="50" width="453" height="299" fill="green" mask="url(#mask)"/ > 40 <rect x="50" y="50" width="453" height="299" fill="green" mask="url(#mask)"/ >
41 </g> 41 </g>
42 </svg> 42 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698