Bug Tracker

Modify

Ticket #7103 (closed bug: duplicate)

Opened 3 years ago

Last modified 16 months ago

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

comment:1 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #5509.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.