Bug Tracker

Modify

Ticket #7058 (closed bug: wontfix)

Opened 3 years ago

Last modified 18 months ago

.css('borderTopWidth')

Reported by: amoschen Owned by: dmethvin
Priority: low Milestone: 1.next
Component: css Version: 1.4.2
Keywords: borderWidth Cc:
Blocking: Blocked by:

Description

When using .css('borderTopWidth'), jquery doesn't take the situation into consideration that when the border-width has not been set in css file, ie's default value is 'medium' while other browsers are '0px'. We'd better unify the return value to '0px' to avoid compatibility issues.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Priority set to undecided

Border dimensions only have meaning if border-style is *not* "none":

 http://www.w3.org/TR/CSS2/box.html#border-style-properties

If the browser supports getComputedStyle (basically, everyone but IE) then it takes this into account automatically. Since curCSS is now defined separately for the IE case, a workaround could be applied there.

comment:2 Changed 3 years ago by snover

  • Priority changed from undecided to low
  • Status changed from new to open
  • Milestone changed from 1.4.3 to 1.next

comment:3 Changed 3 years ago by snover

  • Milestone changed from 1.4.4 to 1.4.5

Retargeting due to severity of regressions in 1.4.3.

comment:4 Changed 2 years ago by dmethvin

  • Owner set to dmethvin
  • Status changed from open to assigned

comment:5 Changed 2 years ago by dmethvin

comment:6 Changed 2 years ago by dmethvin

  • Milestone changed from 1.4.5 to 1.5

comment:7 Changed 2 years ago by dmethvin

  • Milestone set to 1.7

I have a patch for this but am not convinced it's worth the bytes. Comment here and vote up the ticket if you think otherwise and we'll review for 1.7.

comment:8 Changed 2 years ago by john

  • Status changed from assigned to closed
  • Resolution set to wontfix
  • Milestone changed from 1.7 to 1.next

Yeah, sounds like we're just going to punt on this.

comment:9 Changed 2 years ago by dmethvin

#9484 is a duplicate of this ticket.

comment:10 Changed 18 months ago by dmethvin

#10855 is a duplicate of this ticket.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.