Status: Accepted
Owner: kpreid.switchb.org
Labels: Type-Defect Priority-Medium CSS DOMado
New issue 1837 by kpreid.switchb.org: Canvas does not accept rgb() colors
http://code.google.com/p/google-caja/issues/detail?id=1837
<div style="background-color: rgb(10, 20, 255);">foo</div>
<canvas id="my_canvas" width="200" height="20"></canvas>
<script>
var ctx = document.getElementById('my_canvas').getContext('2d');
ctx.fillStyle = '#F00';
ctx.fillStyle = 'rgb(10, 20, 255)';
ctx.fillRect(0, 0, 20, 20);
</script>
Expected: Two blue boxes.
Actual: One blue box and one red box, indicating the string 'rgb(10, 20,
255)' was rejected as a valid color value for fillStyle.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.