Side navigation
#12674 closed bug (notabug)
Opened October 08, 2012 01:14PM UTC
Closed October 08, 2012 02:44PM UTC
Last modified October 08, 2012 02:52PM UTC
$.css not working in browsers == !Chrome
Reported by: | Ronak Shah | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | css | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I'm using
$(elem).css('border')
, which is working in Chrome but not in other browsers
Please see this link: http://jsfiddle.net/tXq5c/
This is working in Google Chrome Version 24.0.1284.2 dev-m
But it is not working in:
- Firefox 15.0.1
- IE10
- IE9
Other browser not tested.
Attachments (0)
Change History (2)
Changed October 08, 2012 02:44PM UTC by comment:1
component: | unfiled → css |
---|---|
priority: | undecided → low |
resolution: | → notabug |
status: | new → closed |
Changed October 08, 2012 02:52PM UTC by comment:2
It doesn't "work" in Chrome either: http://jsfiddle.net/QAx5P/
Thanks for contributing!
From api.jquery.com/css: "Shorthand CSS properties (e.g. margin, background, border) are not supported. For example, if you want to retrieve the rendered margin, use: $(elem).css('marginTop') and $(elem).css('marginRight'), and so on."
The fact that it works in Chrome is a happy accident, but not something we support or intend to support. Thanks!