Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#13421 closed bug (notabug)

$.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/

Change History (8)

comment:1 Changed 6 years ago by gibson042

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.

comment:2 Changed 6 years ago by gibson042

#13565 is a duplicate of this ticket.

comment:3 Changed 6 years ago by gibson042

#13631 is a duplicate of this ticket.

comment:4 Changed 6 years ago by gibson042

#14020 is a duplicate of this ticket.

comment:5 in reply to:  2 Changed 6 years ago by anonymous

Replying to gibson042:

#13565 is a duplicate of this ticket.

$(elem).css('borderTop') has the same effect http://jsfiddle.net/EMjJD/5/

comment:6 Changed 6 years ago by gibson042

Yes, "borderTop" is also a shorthand property.

comment:7 Changed 6 years ago by dmethvin

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

comment:8 Changed 6 years ago by gibson042

#14105 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.