Skip to main content

Bug Tracker

Side navigation

#13421 closed bug (notabug)

Opened February 09, 2013 12:19AM UTC

Closed February 09, 2013 12:55AM UTC

Last modified July 05, 2013 12:54PM UTC

$.css bug in firefox

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: css Version: git
Keywords: Cc:
Blocked by: Blocking:
Description

$('selector').css('border-radius')

dose not return the right value in firefox

http://jsfiddle.net/cxdpE/

Attachments (0)
Change History (8)

Changed February 09, 2013 12:55AM UTC by gibson042 comment:1

component: unfiledcss
resolution: → notabug
status: newclosed

From http://api.jquery.com/css/:

[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.

Changed March 04, 2013 01:58PM UTC by gibson042 comment:2

#13565 is a duplicate of this ticket.

Changed March 20, 2013 12:03AM UTC by gibson042 comment:3

#13631 is a duplicate of this ticket.

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

#14020 is a duplicate of this ticket.

Changed June 14, 2013 08:18PM UTC by anonymous comment:5

Replying to [comment:2 gibson042]:

#13565 is a duplicate of this ticket.

$(elem).css('borderTop') has the same effect

http://jsfiddle.net/EMjJD/5/

Changed June 14, 2013 08:19PM UTC by gibson042 comment:6

Yes, "borderTop" is also a shorthand property.

Changed June 14, 2013 11:55PM UTC by dmethvin comment:7

For borders there is not only the side but the width/color/style, which means the actual single-number value is borderTopWidth.

Changed July 05, 2013 12:54PM UTC by gibson042 comment:8

#14105 is a duplicate of this ticket.