layout/reftests/css-calc/background-image-gradient-1.html

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 <!DOCTYPE HTML>
     2 <title>Test for calc() on background-image gradients</title>
     3 <style>
     5 p {
     6     height: 50px; width: 200px;
     7     border: thin solid;
     8 }
    10 #one { background-image: -moz-radial-gradient(calc(50px + 50%) calc(100% - 30px), circle farthest-side, red, green); }
    11 #two { background-image: -moz-linear-gradient(calc(-12.5% + 3px) calc(-10px - 50%) -45deg, blue, yellow); }
    13 </style>
    14 <p id="one"></p>
    15 <p id="two"></p>

mercurial