OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 .box { |
| 4 display: inline-block; |
| 5 height: 100px; |
| 6 width: 200px; |
| 7 border: 1px solid black; |
| 8 } |
| 9 |
| 10 .linear1 { |
| 11 background-image: linear-gradient(to right, red -80%, -50%, green, blue, gre
en, 150%, blue 170%); |
| 12 } |
| 13 |
| 14 .linear2 { |
| 15 background-image: linear-gradient(to right, red, 10%, green 100px, 60%, blue
); |
| 16 } |
| 17 |
| 18 .linear3 { |
| 19 background-image: linear-gradient(to right, red, 10%, green, 60%, blue); |
| 20 } |
| 21 |
| 22 .linear4 { |
| 23 background-image: linear-gradient(to right, red 4em, 6em, green 10em, 11em,
blue); |
| 24 } |
| 25 |
| 26 .linear5 { |
| 27 background-image: linear-gradient(to right, red 10px, 10%, green 50px, 60%,
blue 100px); |
| 28 } |
| 29 |
| 30 .linear6 { |
| 31 background-image: linear-gradient(to right, red 5%, 100px, green 50%, 160px,
blue 90%); |
| 32 } |
| 33 |
| 34 .linear7 { |
| 35 background-image: linear-gradient(to right, red, 10%, transparent, 90%, blue
); |
| 36 } |
| 37 |
| 38 .linear8 { |
| 39 background-image: linear-gradient(to right, transparent, 10%, red, 90%, tran
sparent); |
| 40 } |
| 41 |
| 42 </style> |
| 43 <script type="text/javascript" charset="utf-8"> |
| 44 if (window.testRunner) { |
| 45 testRunner.dumpAsTextWithPixelResults(); |
| 46 } |
| 47 </script> |
| 48 |
| 49 <div class="linear1 box"></div> |
| 50 <div class="linear2 box"></div> |
| 51 <div class="linear3 box"></div> |
| 52 <div class="linear4 box"></div> |
| 53 <div class="linear5 box"></div> |
| 54 <div class="linear6 box"></div> |
| 55 <div class="linear7 box"></div> |
| 56 <div class="linear8 box"></div> |
OLD | NEW |