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