blob: c62b28455e82d28aa44e9f4d1764a1c88d0c9f23 [file] [log] [blame]
<!DOCTYPE HTML>
<script src="../../resources/js-test-pre.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>
<script src="../../resources/js-test-post.js"></script>