<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>47611</bug_id>
          
          <creation_ts>2010-10-13 12:24:17 -0700</creation_ts>
          <short_desc>min-height when zooming-in/zooming-out reports a different result</short_desc>
          <delta_ts>2013-01-10 14:10:09 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://hustoknow.blogspot.com/2010/10/chrome-and-jquery-ui-min-height-issue.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>68075</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter>roger.hu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aroben</cc>
    
    <cc>eae</cc>
    
    <cc>fsamuel</cc>
    
    <cc>siraj</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>293594</commentid>
    <comment_count>0</comment_count>
    <who name="">roger.hu</who>
    <bug_when>2010-10-13 12:24:17 -0700</bug_when>
    <thetext>Inside Chrome, when setting a &lt;div&gt; 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(&apos;box&apos;).offsetHeight

Returns: 1000

83% scale:
document.getElementById(&apos;box&apos;).offsetHeight

Returns: 999

69% scale:
document.getElementById(&apos;box&apos;).offsetHeight

57% scale:

document.getElementById(&apos;box&apos;).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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293596</commentid>
    <comment_count>1</comment_count>
      <attachid>70645</attachid>
    <who name="">roger.hu</who>
    <bug_when>2010-10-13 12:24:38 -0700</bug_when>
    <thetext>Created attachment 70645
HTMl file that demonstrates the issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>293608</commentid>
    <comment_count>2</comment_count>
      <attachid>70646</attachid>
    <who name="">roger.hu</who>
    <bug_when>2010-10-13 12:26:57 -0700</bug_when>
    <thetext>Created attachment 70646
use this file instead to try the zoom-in/zoom-out min-height issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>467060</commentid>
    <comment_count>3</comment_count>
    <who name="Fady Samuel">fsamuel</who>
    <bug_when>2011-09-14 09:15:32 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Created an attachment (id=70646) [details]
&gt; use this file instead to try the zoom-in/zoom-out min-height issue

Does this also affect page scaling?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>804713</commentid>
    <comment_count>4</comment_count>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2013-01-10 14:10:09 -0800</bug_when>
    <thetext>This no longer reproduces, was likely fixed by subpixel layout.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>70645</attachid>
            <date>2010-10-13 12:24:38 -0700</date>
            <delta_ts>2010-10-13 12:26:28 -0700</delta_ts>
            <desc>HTMl file that demonstrates the issue</desc>
            <filename>tst.html</filename>
            <type>text/html</type>
            <size>139</size>
            <attacher>roger.hu</attacher>
            
              <data encoding="base64">PGh0bWw+Cgo8Ym9keT4KICA8ZGl2IHN0eWxlPSJkaXNwbGF5OiBibG9jazsgbWFyZ2luOiAwIDA7
IGJvcmRlcjogMXB4IHNvbGlkIGJsYWNrOyBtaW4taGVpZ2h0OiAxMDAwcHg7ICIgaWQ9ImJveCI+
eW88L2Rpdj4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>70646</attachid>
            <date>2010-10-13 12:26:57 -0700</date>
            <delta_ts>2010-10-13 12:26:57 -0700</delta_ts>
            <desc>use this file instead to try the zoom-in/zoom-out min-height issue</desc>
            <filename>tst.html</filename>
            <type>text/html</type>
            <size>85</size>
            <attacher>roger.hu</attacher>
            
              <data encoding="base64">PGh0bWw+Cgo8Ym9keT4KICA8ZGl2IHN0eWxlPSJtaW4taGVpZ2h0OiAxMDAwcHg7ICIgaWQ9ImJv
eCI+eW88L2Rpdj4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>