layout/reftests/svg/filter-scaled-01.svg

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <svg width="100%" height="100%" preserveAspectRatio="none" 
     2      xmlns="http://www.w3.org/2000/svg"
     3      xmlns:xlink="http://www.w3.org/1999/xlink">
     5   <title>Testcase for scaled filter with non-integer x and y and objectBoundingBox</title> 
     6   <defs>
     7     <filter id="filter" filterUnits="objectBoundingBox" x="0.5" y="0.5" width="0.25" height="0.25">
     8       <feFlood flood-color="red" width="1" height="1" />
     9     </filter>
    10   </defs>
    12   <rect width="100%" height="100%" fill="lime"/>
    13   <g transform="scale(400)">
    14     <rect width="1" height="1" filter="url(#filter)" />
    15   </g>
    16   <rect x="200" y="200" width="100" height="100" fill="lime" />
    18 </svg>

mercurial