summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/rgba-custom-text.html
blob: 27f2354a8181019a6791fa6f7ab232a1661d32c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE HTML>
<script src="../../resources/js-test.js"></script>
<style>
   #test {
       color: rgba(0, 0, 0, 0.2);
   }
</style>
<div id="test"></div>
<script>
    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 exactly. So 0.2 is able to be stored with no rounding.");
    shouldBeEqualToString('getComputedStyle(document.getElementById("test"), null).color', "rgba(0, 0, 0, 0.2)");
</script>