Opened 11 years ago
Closed 11 years ago
#10689 closed bug (invalid)
images not in dom report 0 width/height
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | css | Version: | 1.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have an image not in the DOM. $img.width() === 0
. $img[0].width ===7680
Change History (2)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Component: | unfiled → css |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
Version: | → 1.7 |
$img.width() gets computed styles. $img[0].width retrieves the uncomputed property value. Computed width should always be 0 on disconnected images.
Note: See
TracTickets for help on using
tickets.
very quick demo: http://jsfiddle.net/FYsuc/