Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Other
New issue 1920 by [email protected]: Javascript set HSL colors not working
http://code.google.com/p/google-caja/issues/detail?id=1920
What revision of the cajoler exhibits the problem? On what browser and OS?
Caja Playground
Rev 5643 built on 2013-12-05 14:54:08.
ChromeOS
Versie 35.0.1916.69
Platform 5712.35.0 (Official Build) stable-channel stumpy
Firmware Google_Stumpy.2.102.0
What steps will reproduce the problem?
1. Change backgroundcolor using HSL values with Javascript
2. document.getElementById("myDIV").style.backgroundColor
= "hsl(59,100%,50%)";
3. Console gives error "bad value `hsl(59,100%,50%)` for CSS property
backgroundColor "
What is the expected output?
- Changing background color
Setting colors using HSL is very easy programmatically, i.e. a color bar.
Cannot be used using HTMLService in GAS.
What do you see instead?
- Error message in console
Please provide any additional information below.
--- source ----
<style>
#myDIV
{
width:300px;
height:300px;
background-color:coral;
color:white;
}
</style>
<div id="myDIV">
<h1>Hello</h1>
</div>
<script>
document.getElementById("myDIV").style.backgroundColor = "hsl(59,100%,50%)";
</script>
--
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/d/optout.