RESOLVED WORKSFORME 47611
min-height when zooming-in/zooming-out reports a different result
https://bugs.webkit.org/show_bug.cgi?id=47611
Summary min-height when zooming-in/zooming-out reports a different result
roger.hu
Reported 2010-10-13 12:24:17 PDT
Inside Chrome, when setting a <div> tag with min-height = 1000px and then adjusting the page-zoom level, the offsetHeight/clientHeight report 1-2 px less than the min-height: 100% scale: document.getElementById('box').offsetHeight Returns: 1000 83% scale: document.getElementById('box').offsetHeight Returns: 999 69% scale: document.getElementById('box').offsetHeight 57% scale: document.getElementById('box').offsetHeight Returns: 998 This issue affects the JQuery UI, which depends on a fixed pixel width to determine whether the browser can support the min-height property.
Attachments
HTMl file that demonstrates the issue (139 bytes, text/html)
2010-10-13 12:24 PDT, roger.hu
no flags
use this file instead to try the zoom-in/zoom-out min-height issue (85 bytes, text/html)
2010-10-13 12:26 PDT, roger.hu
no flags
roger.hu
Comment 1 2010-10-13 12:24:38 PDT
Created attachment 70645 [details] HTMl file that demonstrates the issue
roger.hu
Comment 2 2010-10-13 12:26:57 PDT
Created attachment 70646 [details] use this file instead to try the zoom-in/zoom-out min-height issue
Fady Samuel
Comment 3 2011-09-14 09:15:32 PDT
(In reply to comment #2) > Created an attachment (id=70646) [details] > use this file instead to try the zoom-in/zoom-out min-height issue Does this also affect page scaling?
Emil A Eklund
Comment 4 2013-01-10 14:10:09 PST
This no longer reproduces, was likely fixed by subpixel layout.
Note You need to log in before you can comment on or make changes to this bug.