HTML5 page.
Chrome 24.0, Maxthon 3.5, IE 8 and IE 9
I have created two div with a height of 100px to analize. The second one have a border of 2px.
I saw documentation of
.height() but the page do not contains the word "zoom" at all.
Where is documentation about zoom level in jQuery?
Documentation says "returns a unit-less pixel value" (can be a float point value?) and then "return the content height, regardless of the value of the CSS box-sizing
property".
First of all, according to the documentation, I think values must be the same without worring about border. Am I wrong?
And then the values MUST BE the same that can be obtained by a simple DOMelement interrogation (elem.style.borderTopWidth as elem.style.Height).
I see that for the div without a border at any zoom level the returned values remain the same.
Instead, for the other div changing zoom level make all properties returning the same values only for zoom level multiple of 50 (50%, 100%, 150% ...). Only outerHeight seems to be ok, bu it also fail with zoom level less than 100%.
I have found
a bug ticket about zoom and width, but this one points on a different argumentation and it was closed 4 months ago with "duplicate" reason, but where is a link to the other ticket?
I have created a test case under
jsBin.
Is this a possible bug without a ticket?