#13695 closed bug (wontfix)
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
Change History (2)
comment:1 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
Thanks for your reply. This happens margin and padding. Is it a cantfix as well?
Note: See
TracTickets for help on using
tickets.
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.