Skip to main content

Bug Tracker

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

Attachments (0)
Change History (2)

Changed March 31, 2013 02:45PM UTC by mikesherov comment:1

resolution: → wontfix
status: newclosed

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.

Changed April 01, 2013 02:20AM UTC by anonymous comment:2

Thanks for your reply. This happens margin and padding. Is it a cantfix as well?