#7058 closed bug (wontfix)
.css('borderTopWidth')
Reported by: | amoschen | Owned by: | dmethvin |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | css | Version: | 1.4.2 |
Keywords: | borderWidth | Cc: | |
Blocked by: | Blocking: |
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 (10)
comment:1 Changed 13 years ago by
Priority: | → undecided |
---|
comment:2 Changed 13 years ago by
Milestone: | 1.4.3 → 1.next |
---|---|
Priority: | undecided → low |
Status: | new → open |
comment:3 Changed 13 years ago by
Milestone: | 1.4.4 → 1.4.5 |
---|
Retargeting due to severity of regressions in 1.4.3.
comment:4 Changed 12 years ago by
Owner: | set to dmethvin |
---|---|
Status: | open → assigned |
comment:6 Changed 12 years ago by
Milestone: | 1.4.5 → 1.5 |
---|
comment:7 Changed 12 years ago by
Milestone: | → 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 12 years ago by
Milestone: | 1.7 → 1.next |
---|---|
Resolution: | → wontfix |
Status: | assigned → closed |
Yeah, sounds like we're just going to punt on this.
Note: See
TracTickets for help on using
tickets.
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.