Skip to main content

Bug Tracker

Side navigation

#14020 closed bug (duplicate)

Opened June 14, 2013 08:52AM UTC

Closed June 14, 2013 01:25PM UTC

.css() method inconsistance results in different browsers

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Trying to get border of an element using css method works only in Opera and Chrome. IE8+ and FireFox gives NaN or nothing (IE10).

The same is with older versions of library

Attachments (0)
Change History (1)

Changed June 14, 2013 01:25PM UTC by gibson042 comment:1

resolution: → duplicate
status: newclosed

Duplicate of #13421.From

[Retrieval of] 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.