Ticket #7103 (closed bug: duplicate)
Non-standard CSS property values on IE
| Reported by: | aivopaas | Owned by: | |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.4.3 |
| Component: | css | Version: | 1.4.2 |
| Keywords: | css background rgba ie | Cc: | |
| Blocking: | Blocked by: |
Description
Setting rgba and probably other CSS3 property values results in unhandled exception on Internet Explorer.
Test case:
$('<div>RGBA</div>').appendTo('body').css('backgroundColor', 'rgba(0,0,0,0.8)');
Fails on 1.4.2 and latest nightly
Other browsers set background color to the correct value, while IE8 just runs into exception. While IE does not support alpha values on background, maybe colors could be converted to RGB hex values. Support for rgba should be easily feature-detected. Removing alpha value for non-suporting browsers would make it run and not crash. The result would be not as pretty as intended, but we should at least be able to benefit from modern browsers.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Duplicate of #5509.