upload webkit/tizen 2.0_beta source.
[framework/web/webkit-efl.git] / LayoutTests / fast / gradients / css3-color-stop-units.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5   <style type="text/css" media="screen">
6     h2 {
7       font-size: 12pt;
8       margin: 2px;
9     }
10
11     .box {
12       display: inline-block;
13       height: 100px;
14       width: 300px;
15       margin: 10px;
16       border: 1px solid black;
17       background-repeat: no-repeat;
18     }
19
20     .indicator {
21       background-color: black;
22       height: 20px;
23       width: 3em;
24     }
25
26     .linear1 {
27       background-image: -webkit-linear-gradient(left, red, green 33.33%, blue);
28       background-image: -moz-linear-gradient(left, red, green 33.33%, blue);
29     }
30
31     .linear2 {
32       background-image: -webkit-linear-gradient(left, red, green 100px, blue);
33       background-image: -moz-linear-gradient(left, red, green 100px, blue);
34     }
35
36     .linear3 {
37       font-size: 12pt;
38       background-image: -webkit-linear-gradient(left, red, green 3em, blue);
39       background-image: -moz-linear-gradient(left, red, green 3em, blue);
40     }
41
42     .linear4 {
43       font-size: 24pt;
44       background-image: -webkit-linear-gradient(left, red, green 3em, blue);
45       background-image: -moz-linear-gradient(left, red, green 3em, blue);
46     }
47
48     .linear5 {
49       font-size: 12pt;
50       background-image: -webkit-linear-gradient(left, red, green 6em, yellow 50%, blue);
51       background-image: -moz-linear-gradient(left, red, green 6em, yellow 50%, blue);
52     }
53
54     .linear6 {
55       font-size: 24pt;
56       background-image: -webkit-linear-gradient(left, red, green 6em, yellow 50%, blue);
57       background-image: -moz-linear-gradient(left, red, green 6em, yellow 50%, blue);
58     }
59
60     .linear7 {
61       background-image: -webkit-linear-gradient(left, red, green 100px, yellow 50%, blue);
62       background-image: -moz-linear-gradient(left, red, green 100px, yellow 50%, blue);
63     }
64
65     .linear8 {
66       background-image: -webkit-linear-gradient(left, red, green 100px, yellow 50%, blue);
67       background-image: -moz-linear-gradient(left, red, green 100px, yellow 50%, blue);
68     }
69   </style>
70   <script type="text/javascript" charset="utf-8">
71     if (window.layoutTestController) {
72       var dumpPixels = true;
73       layoutTestController.dumpAsText(dumpPixels);
74     }
75   </script>
76 </head>
77 <body>
78
79   <h2>These should look the same</h2>
80   <div class="container">
81     <div class="linear1 box"></div>
82     <div class="linear2 box"></div>
83   </div>
84
85   <h2>Green stop should coincide with the end of the black line</h2>
86   <div class="container">
87     <div class="linear3 box"><div class="indicator" style="width: 3em;"></div></div>
88     <div class="linear4 box"><div class="indicator" style="width: 3em;"></div></div>
89   </div>
90
91   <h2>Should see a sharp green/yellow transition on the right, at the end of the line</h2>
92   <div class="container">
93     <div class="linear5 box"><div class="indicator" style="width: 6em;"></div></div>
94     <div class="linear6 box"><div class="indicator" style="width: 6em;"></div></div>
95   </div>
96
97   <h2>Should see a sharp green/yellow transition in the right box</h2>
98   <div class="container">
99     <div class="linear7 box"></div>
100     <div class="linear8 box" style="width: 200px;"></div>
101   </div>
102
103 </body>
104 </html>