Ticket #9598 (closed enhancement: fixed)
width() does offsetWidth fallback unnecessarily if width=0 but padding or border > 0
|Reported by:||mikesherov||Owned by:|
In the latest updates, significant changes were made to cssHooks for width and height to address #9300 . However, it unnecessarily falls back from offsetWidth calculations when the width of the element is 0 and the padding or border is greater than 0.
The check if offsetWidth > 0 should happen before padding and border are stripped out.