layout/reftests/backgrounds/gradient/scaled-color-stop-position-ref.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/publicdomain/zero/1.0/
     4 -->
     5 <!DOCTYPE html>
     6 <html>
     7 <head>
     8   <title>Color stop positioning for scaled gradients as backgrounds reference</title>
     9   <style type="text/css">
    10 #outer
    11 {
    12   border: 1px solid black;
    13   width: 600px; height: 300px;
    14 }
    15 #inner
    16 {
    17   width: 400px; height: 300px;
    18   /* 250px stop is halfway along 500px diagonal */
    19   background-image: -moz-linear-gradient(top left, lime 0%, teal 250px, black 100%);
    20   background-image: linear-gradient(top left, lime 0%, teal 250px, black 100%);
    21 }
    22   </style>
    23 </head>
    24 <body>
    25 <div id="outer"><div id="inner"></div></div>
    26 </body>
    27 </html>

mercurial