<?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>198291</bug_id>
          
          <creation_ts>2019-05-28 03:49:29 -0700</creation_ts>
          <short_desc>Zoom affects maximum element size</short_desc>
          <delta_ts>2023-04-21 05:22:36 -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>WebKit 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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andy E">andyearnshaw</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1539525</commentid>
    <comment_count>0</comment_count>
      <attachid>370724</attachid>
    <who name="Andy E">andyearnshaw</who>
    <bug_when>2019-05-28 03:49:29 -0700</bug_when>
    <thetext>Created attachment 370724
Repro case (ResizeObserver support required to view)

Steps to reproduce the problem:

  1. Create a div at height 33554428px
  2. Zoom in
  3. Observe the change in div height

As the zoom level increases, the height of the div decreases. This behaviour is not observed in Firefox or EdgeHTML.

The impact it has is on virtual scrolling solutions where the total scrollable area is greater than the maximum permitted element height. In this situation, we apply a multiplier to the scroll position to get the virtual scroll position. Chrome and Safari&apos;s behaviour means that we need to observe resizes of an element at maximum height/width so we can adjust our scaling accordingly (see 195158 for more info on that).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1539674</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-05-28 11:42:35 -0700</bug_when>
    <thetext>By &quot;zoom&quot; do you mean pinch-zoom or Command-+?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1539911</commentid>
    <comment_count>2</comment_count>
    <who name="Andy E">andyearnshaw</who>
    <bug_when>2019-05-29 00:39:36 -0700</bug_when>
    <thetext>Command-+ on macOS Safari, sorry I should have been more clear on this.  I&apos;m not sure about pinch-zoom on iPad/iPhone as I am unable to test it currently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880202</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-01 15:30:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/96317811&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1950320</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-04-21 05:22:36 -0700</bug_when>
    <thetext>Chrome Canary 114 and Safari Technology Preview 168 matches each other and changes DIV height while Firefox Nightly 114 does not. Just wanted to share updated testing result. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>370724</attachid>
            <date>2019-05-28 03:49:29 -0700</date>
            <delta_ts>2019-05-28 03:49:29 -0700</delta_ts>
            <desc>Repro case (ResizeObserver support required to view)</desc>
            <filename>zoom-element-resize.html</filename>
            <type>text/html</type>
            <size>1068</size>
            <attacher name="Andy E">andyearnshaw</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8Ym9keT4KICAgIDxkaXYg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c3Qub2Zmc2V0SGVpZ2h0fXB4IGluIGhlaWdodGA7CiAgICAgIH0KICAg
ICAgY29uc3QgcmVzaXplID0gbmV3IFJlc2l6ZU9ic2VydmVyKHVwZGF0ZSk7CiAgICAgIHJlc2l6
ZS5vYnNlcnZlKHRlc3QpOwoKICAgICAgdGVzdC5zdHlsZS5oZWlnaHQgPSBgJHtNQVhfRUxFTUVO
VF9TSVpFfXB4YDsKICAgIDwvc2NyaXB0Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>