Side navigation
#13695 closed bug (wontfix)
Opened March 29, 2013 10:01AM UTC
Closed March 31, 2013 02:45PM UTC
Last modified April 01, 2013 02:20AM UTC
Return wrong value in percent
Reported by: | Huy | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello, I got a bug of jquery need to report:
<div style="width:200px;">
<textarea class="item">parent is hidden. width() represents width in px hovewer it's in percent.</textarea>
</div>
.item {
width: 224.43%;
}
$(document).ready(function() {
alert($('.item').width());
});
Returned width is: 449px but I want to get value in percent (mean 224.43)
Thanks
Thanks for contributing! For width and height, the pixel value is always returned. All browsers do this according to the CSSOM standard. While this is also a cantfix, it's also a wontfix.