<?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>63333</bug_id>
          
          <creation_ts>2011-06-24 10:51:34 -0700</creation_ts>
          <short_desc>CSS zoom property incorrectly affects offset</short_desc>
          <delta_ts>2011-06-24 11:24:30 -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>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>39924</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Malcolm MacLeod">mmacleod</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eae</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>426968</commentid>
    <comment_count>0</comment_count>
    <who name="Malcolm MacLeod">mmacleod</who>
    <bug_when>2011-06-24 10:51:34 -0700</bug_when>
    <thetext>When CSS zoom is applied to an element the element can return incorrect offset values as a results (even though it continues to display in the correct place), seemingly the code to fill in the offsets automatically assumes that the element itself has been affected by the zoom without actually checking to ensure this is the case.

Steps to reproduce:
1) Open attached testcase &quot;zoombug.html&quot;
2) click through 3 alert messages observing the offsetLeft value that it displays
3) observe that in each case the actual position of the div has not changed
4) observe that only the content inside the div that is zoomed the page around the div and the div itself are not affected by the zoom
5) observe that in each case the offsetLeft value of the element does change despite the fact that it is clearly offset by the exact same amount it was previously</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426990</commentid>
    <comment_count>1</comment_count>
      <attachid>98513</attachid>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2011-06-24 11:07:52 -0700</bug_when>
    <thetext>Created attachment 98513
test

I assume you meant to upload a copy of the test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426993</commentid>
    <comment_count>2</comment_count>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2011-06-24 11:10:53 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 39924 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>427001</commentid>
    <comment_count>3</comment_count>
    <who name="Malcolm MacLeod">mmacleod</who>
    <bug_when>2011-06-24 11:18:43 -0700</bug_when>
    <thetext>Yes sorry, forgot to upload test thanks. Not entirely sure this is a duplicate of 39924 as in the case of 39924 the whole page is zoomed and the offsets of the elements do actually change visually. In this case the element does not move at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>427006</commentid>
    <comment_count>4</comment_count>
    <who name="Emil A Eklund">eae</who>
    <bug_when>2011-06-24 11:24:30 -0700</bug_when>
    <thetext>No worries, we&apos;ll make sure to run your test case when fixing 39924.
Thanks for the report and the reduced test!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>98513</attachid>
            <date>2011-06-24 11:07:52 -0700</date>
            <delta_ts>2011-06-24 11:07:52 -0700</delta_ts>
            <desc>test</desc>
            <filename>zoombug.html</filename>
            <type>text/html</type>
            <size>848</size>
            <attacher name="Emil A Eklund">eae</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgICA8aGVhZD4KICAgICAgICA8c3R5bGU+CiAgICAgICAgICAgIGJvZHkKICAgICAg
ICAgICAgewogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOmdyZWVuOwogICAgICAgICAgICB9
CiAgICAgICAgICAgIGRpdgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5k
LWNvbG9yOmJsdWU7CiAgICAgICAgICAgICAgICBwb3NpdGlvbjphYnNvbHV0ZTsKICAgICAgICAg
ICAgICAgIHRvcDoxMCU7CiAgICAgICAgICAgICAgICBsZWZ0OjEwJTsKICAgICAgICAgICAgICAg
IHdpZHRoOjUwJTsKICAgICAgICAgICAgICAgIGhlaWdodDo1MCU7CiAgICAgICAgICAgIH0KICAg
ICAgICA8L3N0eWxlPgogICAgICAgIDxzY3JpcHQ+CiAgICAgICAgICAgIGZ1bmN0aW9uIHRlc3Rv
ZmZzZXRzKCkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgdmFyICBmb28gPSBkb2N1bWVu
dC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnZGl2JylbMF07CiAgICAgICAgICAgICAgICBmb28uc3R5
bGUuem9vbT0iNTAlIjsKICAgICAgICAgICAgICAgIGFsZXJ0KGZvby5vZmZzZXRMZWZ0KTsKICAg
ICAgICAgICAgICAgIGZvby5zdHlsZS56b29tPSIxMDAlIjsKICAgICAgICAgICAgICAgIGFsZXJ0
KGZvby5vZmZzZXRMZWZ0KTsKICAgICAgICAgICAgICAgIGZvby5zdHlsZS56b29tPSIyMDAlIjsK
ICAgICAgICAgICAgICAgIGFsZXJ0KGZvby5vZmZzZXRMZWZ0KTsKICAgICAgICAgICAgfQogICAg
ICAgIDwvc2NyaXB0PgogICAgPC9oZWFkPgo8Ym9keSBvbmxvYWQ9InRlc3RvZmZzZXRzKCkiPgog
ICAgPGRpdj4KICAgICAgICBmYXNzZgogICAgPC9kaXY+CjwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>