#8949 closed bug (worksforme)
.width() and .height() with css atrrbute clip in opera
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | css | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I believe that the newest Opera version returns as value for .width() and .height() of an image only the width and height of the clip attribute when it is set in css. In Firefox and Internet Explorer the width and height of the complete image is returned. If I use .attr('width') and .attr('height') the correct values of the whole image are returned in all browsers.
Change History (4)
comment:1 Changed 12 years ago by
Component: | unfiled → manipulation |
---|---|
Owner: | set to renem1@… |
Priority: | undecided → low |
Status: | new → pending |
comment:2 Changed 12 years ago by
Status: | pending → new |
---|
I have tried to reproduce my problem at jsFiddle.net: http://jsfiddle.net/pJgyu/9314/
As you can see the .height() function returns different values on IE, FF and Opera.
comment:3 Changed 12 years ago by
Component: | manipulation → css |
---|---|
Status: | new → open |
Confirmed inconsistent values are returned. Updated test case
comment:4 Changed 11 years ago by
Resolution: | → worksforme |
---|---|
Status: | open → closed |
I can no longer reproduce this using timmywil's fiddle as of today. I tested this in IE8, Opera 11.6, FF10, Chrome 17. All produce the value of 400 for height.
Until there is a new repro case, I'm considering this closed.
Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on http://jsFiddle.net that reproduces the issue experienced to help us assess your ticket!
Additionally, test against the
jQuery (edge)
version to ensure the issue still exists.