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

Side by Side Diff: LayoutTests/svg/repaint/inner-svg-change-viewPort-relative.svg

Issue 205263004: Convert svg repaint tests to pixel test only repaint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove fixedpos 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 | Annotate | Revision Log
OLDNEW
1 <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="ht tp://www.w3.org/1999/xlink" onload="runRepaintTest()"> 1 <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="ht tp://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
2 <script xlink:href="../../fast/repaint/resources/repaint.js"></script> 2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"></script >
3 <script> 3 <script>
4 <![CDATA[ 4 <![CDATA[
5 function repaintTest() { 5 function repaintTest() {
6 document.getElementById("inner").setAttribute("width", "100%"); 6 document.getElementById("inner").setAttribute("width", "100%");
7 } 7 }
8 ]]> 8 ]]>
9 </script> 9 </script>
10 10
11 <!-- should result in a blue square with right-aligned objects --> 11 <!-- should result in a blue square with right-aligned objects -->
12 <svg id="inner" width="50%" height="100%"> 12 <svg id="inner" width="50%" height="100%">
13 <defs> 13 <defs>
14 <polygon id="triangle" points="0,0 0,20 20,10" style="fill:white"/> 14 <polygon id="triangle" points="0,0 0,20 20,10" style="fill:white"/>
15 </defs> 15 </defs>
16 <rect fill="blue" width="100%" height="100%"/> 16 <rect fill="blue" width="100%" height="100%"/>
17 <rect fill="white" x="100%" y="60" transform="translate(-20,0)" width="20" h eight="20"/> 17 <rect fill="white" x="100%" y="60" transform="translate(-20,0)" width="20" h eight="20"/>
18 <text x="100%" y="100" text-anchor="end" fill="white">right-aligned text</te xt> 18 <text x="100%" y="100" text-anchor="end" fill="white">right-aligned text</te xt>
19 <use x="100%" y="120" transform="translate(-20,0)" xlink:href="#triangle"/> 19 <use x="100%" y="120" transform="translate(-20,0)" xlink:href="#triangle"/>
20 </svg> 20 </svg>
21 </svg> 21 </svg>
OLDNEW
« no previous file with comments | « LayoutTests/svg/repaint/inner-svg-change-viewBox-contract.svg ('k') | LayoutTests/svg/repaint/mask-clip-target-transform.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698