layout/reftests/svg/mask-extref-dataURI-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 <!DOCTYPE svg [
     6   <!-- entities etc. here -->
     7   <!ENTITY dataURI
     8      "data:image/svg+xml,&lt;svg xmlns='http://www.w3.org/2000/svg'&gt;&lt;g id='empty'/&gt;&lt;mask id='mask' maskContentUnits='userSpaceOnUse'&gt;&lt;rect width='50' height='50' fill='white'/&gt;&lt;/mask&gt;&lt;/svg&gt;">
     9 ]>
    10 <svg xmlns="http://www.w3.org/2000/svg"
    11      xmlns:xlink="http://www.w3.org/1999/xlink">
    12   <title>
    13     Testcase for bug 686013: CSS mask targeting a fragment in a data URI
    14   </title>
    15   <style type="text/css">
    16     .masked {
    17       mask: url("&dataURI;#mask");
    18     }
    19   </style>
    21   <!-- use an empty g to force resource document to load before onload -->
    22   <use xlink:href="&dataURI;#empty"/>
    24   <!-- giant lime background -->
    25   <rect width="100%" height="100%" fill="lime"/>
    27   <!-- Masked red rect, covered by lime rect
    28        (to make sure mask doesn't let too much through) -->
    29   <rect width="75" height="75" fill="red" class="masked"/>
    30   <rect width="50" height="50" fill="lime"/>
    32   <!-- Masked lime rect, covering red rect
    33        (to make sure mask lets enough through) -->
    34   <g transform="translate(0, 100)">
    35     <rect width="50" height="50" fill="red"/>
    36     <rect width="75" height="75" fill="lime" class="masked"/>
    37   </g>
    38 </svg>

mercurial