layout/reftests/image-element/gradient-html-06e.html

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/licenses/publicdomain/
     4      Ensure that SVG elements using fill="url(#...)" are *not*
     5      affected by mozSetImageElement.
     6 -->
     7 <!DOCTYPE html>
     8 <html>
     9 <body style="margin:0">
    10   <svg width="300" height="300">
    11     <rect width="300" height="300" fill="url(#g)"></rect>
    12     <linearGradient id="red" gradientUnits="objectBoundingBox" x2="0" y2="1">
    13       <stop stop-color="red" offset="0"></stop>
    14       <stop stop-color="black" offset="1"></stop>
    15     </linearGradient>
    16     <linearGradient id="g" gradientUnits="objectBoundingBox" x2="0" y2="1">
    17       <stop stop-color="lime" offset="0"></stop>
    18       <stop stop-color="black" offset="1"></stop>
    19     </linearGradient>
    20   </svg>
    21   <script>document.mozSetImageElement("g", document.getElementById("red"));</script>
    22 </body>
    23 </html>

mercurial