Bug Tracker

Opened 7 years ago

Closed 7 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 7 years ago by anonymous

comment:2 Changed 7 years ago by timmywil

Component: unfiledcss
Priority: undecidedlow
Resolution: invalid
Status: newclosed
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.