[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / media / color-does-not-include-alpha.html
1 <!DOCTYPE html>
2 <style>
3     div {
4         width: 300px;
5         height: 300px;
6         background-color: red;
7     }
8     @media (color:5), (color:8) {
9         #test {
10             background-color: green;
11         }
12     }
13 </style>
14 <div id=test>This box should be green.</div>
15 <script>
16     if (window.layoutTestController)
17         layoutTestController.dumpAsText();
18     var backgroundColor = getComputedStyle(document.getElementById("test"), null).backgroundColor;
19     const expectedBackgroundColor = "rgb(0, 128, 0)";
20     if (backgroundColor === expectedBackgroundColor)
21         document.write("PASS");
22     else
23         document.write("FAIL: Background color is " + backgroundColor + " but should be " + expectedBackgroundColor);
24 </script>