layout/reftests/svg/marker-effects-01.svg

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg">
     6   <title>Test that clip-path, filter, mask and opacity apply to marker elements</title>
     7   <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=874507 -->
     8   <defs>
     9     <clipPath id="c">
    10       <circle cx="50" cy="50" r="50"/>
    11     </clipPath>
    12     <filter id="f">
    13       <feColorMatrix type="saturate" values="0"/>
    14     </filter>
    15     <mask id="m">
    16       <circle cx="50" cy="50" r="50" fill="white"/>
    17     </mask>
    18     <marker id="m-clip-path" markerWidth="100" markerHeight="100" fill="green" clip-path="url(#c)">
    19       <rect width="100" height="100"/>
    20     </marker>
    21     <marker id="m-filter" markerWidth="100" markerHeight="100" fill="green" filter="url(#f)">
    22       <rect width="100" height="100"/>
    23     </marker>
    24     <marker id="m-mask" markerWidth="100" markerHeight="100" fill="green" mask="url(#m)">
    25       <rect width="100" height="100"/>
    26     </marker>
    27     <marker id="m-opacity" markerWidth="100" markerHeight="100" fill="green" opacity="0.5">
    28       <rect width="100" height="100"/>
    29     </marker>
    30   </defs>
    32   <line x1="10" y1="10" x2="11" y2="10" marker-start="url(#m-clip-path)"/>
    33   <line x1="120" y1="10" x2="121" y2="10" marker-start="url(#m-filter)"/>
    34   <line x1="230" y1="10" x2="231" y2="10" marker-start="url(#m-mask)"/>
    35   <line x1="340" y1="10" x2="341" y2="10" marker-start="url(#m-opacity)"/>
    36 </svg>

mercurial