Skip to main content

Bug Tracker

Side navigation

#12385 closed bug (wontfix)

Opened August 23, 2012 07:16PM UTC

Closed August 23, 2012 08:04PM UTC

IE8 CSS Property Removal - broken for shorthand properties

Reported by: sean.macavaney@gmail.com Owned by:
Priority: low Milestone: None
Component: css Version: 1.8.0
Keywords: Cc:
Blocked by: Blocking:
Description

Removing shorthand css properties through .css('prop', '') behaves differently in IE8 (and below) than in other browsers. The documentation states that the above method should revert the element to the styles applied through stylesheets. This is not the case for shorhand properties such as background, border, etc. in IE8, but it does work in other browsers.

You can see this defect here: http://jsfiddle.net/vP5yZ/4/. In browsers that are <= IE8, the styling is removed. In all other browsers (including IE9), it is not (following documentation).

Attachments (0)
Change History (1)

Changed August 23, 2012 08:04PM UTC by timmywil comment:1

component: unfiledcss
priority: undecidedlow
resolution: → wontfix
status: newclosed

It should be noted that it never worked for those shorthand properties. We already have a note in the getter docs. I've added an issue for updating the css setter docs: https://github.com/jquery/api.jquery.com/issues/55