OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <script src="../../fast/js/resources/js-test-pre.js"></script> | 2 <script src="../../fast/js/resources/js-test-pre.js"></script> |
3 <style> | 3 <style> |
4 #test { | 4 #test { |
5 color: rgba(0, 0, 0, 0.2); | 5 color: rgba(0, 0, 0, 0.2); |
6 } | 6 } |
7 </style> | 7 </style> |
8 <div id="test"></div> | 8 <div id="test"></div> |
9 <script> | 9 <script> |
10 description("Tests the CSS custom text implementation for rgba(). Note that
WebKit internally stores alpha as an 8 bit value, and that 255 * 0.2 = 51 exactl
y. So 0.2 is able to be stored with no rounding."); | 10 description("Tests the CSS custom text implementation for rgba(). Note that
WebKit internally stores alpha as an 8 bit value, and that 255 * 0.2 = 51 exactl
y. So 0.2 is able to be stored with no rounding."); |
11 shouldBeEqualToString('getComputedStyle(document.getElementById("test"), nul
l).color', "rgba(0, 0, 0, 0.2)"); | 11 shouldBeEqualToString('getComputedStyle(document.getElementById("test"), nul
l).color', "rgba(0, 0, 0, 0.2)"); |
12 </script> | 12 </script> |
13 <script src="../../fast/js/resources/js-test-post.js"></script> | |
OLD | NEW |