You're coming across some interesting CSS issues with Caja. I tried to get the shorthand notation to work but I hit the same walls as you. I'm going to explore this a little bit more but here's the solution so you can keep going. I set the properties individually and it worked for me, like so:
CODE
var elem = document.getElementById('element_id');
elem.style.borderWidth = "1px 0 0 0";
elem.style.borderStyle = "solid none none none";
elem.style.borderColor = "#ccc";
- Jon
I'm having a related issue with the border-top property.
I'm trying to set the following via java script:
document.getElementById('element_id').style.borderTop = '1px solid #ccc';
OR
document.getElementById('element_id').style.borderTop = 'none';
I get the errors:
bad value '1px solid #ccc' for CSS property borderTop
bad value 'none' for CSS property borderTop