<?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>67712</bug_id>
          
          <creation_ts>2011-09-07 09:40:48 -0700</creation_ts>
          <short_desc>background-size:contain and full page zoom can sometimes cause background image not to fill the container</short_desc>
          <delta_ts>2017-04-27 10:34:43 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>27569</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bdakin</cc>
    
    <cc>d-r</cc>
    
    <cc>eae</cc>
    
    <cc>eric</cc>
    
    <cc>hyatt</cc>
    
    <cc>leviw</cc>
    
    <cc>mitz</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>syoichi</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>463383</commentid>
    <comment_count>0</comment_count>
      <attachid>106592</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-09-07 09:40:48 -0700</bug_when>
    <thetext>Created attachment 106592
image used by testcase

To reproduce:

1. Load the attached test case
2. Zoom the page once

You&apos;ll see some red appear to the right of the grid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463384</commentid>
    <comment_count>1</comment_count>
      <attachid>106593</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-09-07 09:41:18 -0700</bug_when>
    <thetext>Created attachment 106593
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463389</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-09-07 09:43:26 -0700</bug_when>
    <thetext>Note that the div#inner and the background-image have the same dimensions: 570x18. But after zooming once, document.getElementById(&apos;inner&apos;).getBoundingClientRect().height is 17.5! I assume this is the source of the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463392</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-09-07 09:46:38 -0700</bug_when>
    <thetext>Maybe related to bug 66256?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463393</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2011-09-07 09:48:24 -0700</bug_when>
    <thetext>By &quot;zoom&quot; you mean command+, or gesture zoom?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463398</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2011-09-07 09:54:49 -0700</bug_when>
    <thetext>Cmd-+</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463399</commentid>
    <comment_count>6</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-09-07 09:58:25 -0700</bug_when>
    <thetext>I believe the height is rounded down to floor(18 * 1.2) = 21, and the width is 570*1.2 = 684. This allows the image to scale by a factor of 21/18, giving it a width of 665, leaving 19 horizontal pixels showing red.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>463574</commentid>
    <comment_count>7</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2011-09-07 12:26:12 -0700</bug_when>
    <thetext>I suspect the &quot;auto&quot; value for background-size will have similar issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>476396</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2011-09-30 16:18:45 -0700</bug_when>
    <thetext>&lt;rdar://problem/10218266&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>725467</commentid>
    <comment_count>9</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-09-21 06:22:00 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; I suspect the &quot;auto&quot; value for background-size will have similar issues.

Yes - I see a red line below in &quot;containt&quot; &amp; &quot;auto&quot; case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>725469</commentid>
    <comment_count>10</comment_count>
    <who name="Dominik Röttsches (drott)">d-r</who>
    <bug_when>2012-09-21 06:24:07 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #7)
&gt; &gt; I suspect the &quot;auto&quot; value for background-size will have similar issues.

Same for &quot;100%&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1302159</commentid>
    <comment_count>11</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-04-27 10:34:43 -0700</bug_when>
    <thetext>I can&apos;t reproduce this bug in recent builds.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>106592</attachid>
            <date>2011-09-07 09:40:48 -0700</date>
            <delta_ts>2011-09-07 09:40:48 -0700</delta_ts>
            <desc>image used by testcase</desc>
            <filename>grid.png</filename>
            <type>image/png</type>
            <size>450</size>
            <attacher name="Adam Roben (:aroben)">aroben</attacher>
            
              <data encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAjoAAAASCAIAAADdSuPlAAABiUlEQVR4Ae3bwW3DMAwAwLbIYh7B
g2RGr1b2T/NBxIKknp9iRFPHIASS+Ps8z+M4vrLruq67ULy8iPZC2+fc/oBF39tnb298ophVckK7
++BapYOr1Dn4nfaKvr7f77hrehWheH0R7YW2z7n9AYu+t8/e3vhEMavkhBYC6bVKB1epM5CLUnuh
u5w/aUctEiBAgACBqQSMq6naoRgCBAhsIhBfaX72JMbVZz1lI0CAAIE/gbtfENs6xlWbzkYCBAgQ
GCdgXI2zdicCBAgQaAsYV206GwkQIEBgnIBxNc7anQgQIECgLfAq/rxRhOJ+RbQX2j7n9gcs+t4+
e3vjE8WskhNaCKTXKh1cpc5ALkrthYqcHhMe+oh0dKL33Fyxa/uc2x/wieZCC4H0ekL7P+cM5OL4
vdBdTl8Gpm9piwQIECAwl4BxNVc/VEOAAAECqYBxlbJYJECAAIG5BIyrufqhGgIECBBIBYyrlMUi
AQIECMwlYFzN1Q/VECBAgEAqYFylLBYJECBAYC6BXwTh3tQO/bRzAAAAAElFTkSuQmCC
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>106593</attachid>
            <date>2011-09-07 09:41:18 -0700</date>
            <delta_ts>2011-09-07 09:41:18 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>width-zoom.html</filename>
            <type>text/html</type>
            <size>383</size>
            <attacher name="Adam Roben (:aroben)">aroben</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KICAgICNvdXRlciB7CiAgICAgICAgd2lkdGg6IDU3MHB4
OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJlZDsKICAgIH0KCiAgICAjaW5uZXIgewogICAg
ICAgIGJhY2tncm91bmQtaW1hZ2U6IHVybChodHRwczovL2J1Zy02NzcxMi1hdHRhY2htZW50cy53
ZWJraXQub3JnL2F0dGFjaG1lbnQuY2dpP2lkPTEwNjU5Mik7CiAgICAgICAgYmFja2dyb3VuZC1y
ZXBlYXQ6IG5vLXJlcGVhdDsKICAgICAgICBiYWNrZ3JvdW5kLXNpemU6IGNvbnRhaW47CiAgICAg
ICAgaGVpZ2h0OiAxOHB4OwogICAgfQo8L3N0eWxlPgo8ZGl2IGlkPSJvdXRlciI+CiAgICA8ZGl2
IGlkPSJpbm5lciI+RG8geW91IHNlZSByZWQ/PC9kaXY+CjwvZGl2Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>