Bug 47611 - min-height when zooming-in/zooming-out reports a different result
Summary: min-height when zooming-in/zooming-out reports a different result
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://hustoknow.blogspot.com/2010/10...
Keywords:
Depends on:
Blocks: 68075
  Show dependency treegraph
 
Reported: 2010-10-13 12:24 PDT by roger.hu
Modified: 2013-01-10 14:10 PST (History)
4 users (show)

See Also:


Attachments
HTMl file that demonstrates the issue (139 bytes, text/html)
2010-10-13 12:24 PDT, roger.hu
no flags Details
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 Details

Note You need to log in before you can comment on or make changes to this bug.
Description roger.hu 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.
Comment 1 roger.hu 2010-10-13 12:24:38 PDT
Created attachment 70645 [details]
HTMl file that demonstrates the issue
Comment 2 roger.hu 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
Comment 3 Fady Samuel 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?
Comment 4 Emil A Eklund 2013-01-10 14:10:09 PST
This no longer reproduces, was likely fixed by subpixel layout.