Ticket #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: | |
| 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: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
Pull request: https://github.com/jquery/jquery/pull/123
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: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.

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.