Skip to content

http://api.jquery.com/css/#css2: Shorthand properties #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
timmywil opened this issue Aug 23, 2012 · 1 comment
Closed

http://api.jquery.com/css/#css2: Shorthand properties #55

timmywil opened this issue Aug 23, 2012 · 1 comment

Comments

@timmywil
Copy link
Member

We state that shorthand properties such as border and background are not supported in the getter. While setting these properties works fine with most values, resetting does not. When setting shorthand properties to empty string in IE, they are nullified and previous styles are lost.

e.g.

$elem.css({
  "background": "",
  "border": ""
});
@staabm
Copy link
Contributor

staabm commented Aug 24, 2012

see also http://bugs.jquery.com/ticket/12385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants