Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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 7 years ago by mikesherov

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.

comment:2 Changed 7 years ago by anonymous

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

Note: See TracTickets for help on using tickets.