Ticket #12215 (closed bug: wontfix)
outerWidth, outerheight, width, and height sometimes return a decimal value instead of an integer
|Reported by:||aviynw@…||Owned by:|
according to the docs, width, outerwidth, height, and outerheight, are supposed to return an integer. however sometimes they return a decimal value instead. I played around with what causes this and it seems to happen when either using percentages or decimal pixel values for the margin or padding. Since browsers eventually round everything to a whole pixel, I would expect these methods to return what the browser actually renders, and in fact always return an integer like the docs describe.
You'll notice that browsers are also inconsistent in what they return for theses values.
- Keywords needsdocs added
- Priority changed from undecided to low
- Status changed from new to closed
- Component changed from unfiled to dimensions
- Resolution set to wontfix