Opened 10 years ago
Closed 10 years ago
#12385 closed bug (wontfix)
IE8 CSS Property Removal - broken for shorthand properties
Reported by: | 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).
Change History (1)
comment:1 Changed 10 years ago by
Component: | unfiled → css |
---|---|
Priority: | undecided → low |
Resolution: | → wontfix |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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