layout/reftests/w3c-css/submitted/values3/calc-background-linear-gradient-1.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <!DOCTYPE html>
michael@0 2 <head>
michael@0 3 <title>CSS Test: Support calc() on gradient stop positions</title>
michael@0 4 <link rel="author" title="Yu-Sian (Thomasy) Liu" href="https://bugzilla.mozilla.org/show_bug.cgi?id=594935">
michael@0 5 <link rel="help" href="http://www.w3.org/TR/css3-values/#calc-notation">
michael@0 6 <meta name="flags" content="">
michael@0 7 <style type="text/css">
michael@0 8 div {
michael@0 9 width:100px;
michael@0 10 height:100px;
michael@0 11 background:red;
michael@0 12 margin:5px 0 0 5px;
michael@0 13 float:left;
michael@0 14 }
michael@0 15 div#one {
michael@0 16 background: linear-gradient(lime 0px, lime calc(100% - 10px), blue calc(100% - 10px), blue 100%);
michael@0 17 }
michael@0 18 div#two {
michael@0 19 background: linear-gradient(blue calc(100% - 100px) ,green calc(10% + 20px) ,red 40px ,white calc(100% - 40px) , lime 80px);
michael@0 20 }
michael@0 21 div#three {
michael@0 22 background: linear-gradient(blue calc(0px) ,purple calc(20%) ,red calc(10px + 10px + 20px) ,blue calc(30% + 30px) , lime calc(180% - 100px));
michael@0 23 }
michael@0 24 div#four {
michael@0 25 background: linear-gradient(blue calc(0% + 0px) ,green calc(10% + 20px) ,red 40px ,blue calc(200% / 2 - 40px) , yellow 80px);
michael@0 26 }
michael@0 27 div#five {
michael@0 28 background: linear-gradient(red calc(100% - 100px) ,green calc(10% + 20px));
michael@0 29 }
michael@0 30
michael@0 31 </style>
michael@0 32 </head>
michael@0 33 <body>
michael@0 34 <div id="one">1</div>
michael@0 35 <div id="two">2</div>
michael@0 36 <div id="three">3</div>
michael@0 37 <div id="four">4</div>
michael@0 38 <div id="five">5</div>
michael@0 39 </body>
michael@0 40 </html>

mercurial