<?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>18175</bug_id>
          
          <creation_ts>2008-03-27 23:22:02 -0700</creation_ts>
          <short_desc>document.defaultView.getComputedStyle(el, &apos;&apos;).left  returns empty &quot;auto&quot;. Always.</short_desc>
          <delta_ts>2022-07-25 17:54:46 -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>DOM</component>
          <version>525.x (Safari 3.1)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <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>1</everconfirmed>
          <reporter name="Garrett Smith">xk1t</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>gavin.sharp</cc>
    
    <cc>rniwa</cc>
    
    <cc>webmaster</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75588</commentid>
    <comment_count>0</comment_count>
    <who name="Garrett Smith">xk1t</who>
    <bug_when>2008-03-27 23:22:02 -0700</bug_when>
    <thetext>getComputedStyle returns wrong results for left and top.

The value returned is always &apos;auto&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75589</commentid>
    <comment_count>1</comment_count>
      <attachid>20149</attachid>
    <who name="Garrett Smith">xk1t</who>
    <bug_when>2008-03-27 23:24:46 -0700</bug_when>
    <thetext>Created attachment 20149
testcase showing problem

Check the testcase to see the problem. &apos;left&apos; and &apos;top&apos; are &apos;auto&apos;, but should instead be 100px, 12px, respectively.

Aside from that, the value for margin is empty. The value should be either 1 or four values. This is not a spec, it&apos;s just what I say. 1 value or four values. That is easier for scripts to deal with value.split(&apos; &quot;);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75654</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2008-03-28 11:59:49 -0700</bug_when>
    <thetext>The issue is that the div is not positioned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75734</commentid>
    <comment_count>3</comment_count>
      <attachid>20185</attachid>
    <who name="Garrett Smith">xk1t</who>
    <bug_when>2008-03-28 23:01:48 -0700</bug_when>
    <thetext>Created attachment 20185
position: relative, left is still auto

When the element has position: relative, the computed left value is 0, however, webkit will return &apos;auto&apos;.

&quot;If both &apos;left&apos; and &apos;right&apos; are &apos;auto&apos; (their initial values), the computed values are &apos;0&apos; (i.e., the boxes stay in their original position).&quot;
http://www.w3.org/TR/CSS21/visuren.html#relative-positioning</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886623</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-25 16:59:36 -0700</bug_when>
    <thetext>I am unable to reproduce this bug in Safari 15.6 on macOS 12.5 and in both test cases, all browsers are giving same output:

Test Case 1 (testcase showing..) - 100px, 12px, 1px, 1px;

Test Case 2 (position..) - 0px, 0px, 1px, 1px;

Since all browsers are matching, can this be marked as &quot;RESOLVED CONFIGURATION CHANGED&quot; or as such. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>20149</attachid>
            <date>2008-03-27 23:24:46 -0700</date>
            <delta_ts>2008-03-27 23:24:46 -0700</delta_ts>
            <desc>testcase showing problem</desc>
            <filename>getComputedStyle.left.html</filename>
            <type>text/html</type>
            <size>774</size>
            <attacher name="Garrett Smith">xk1t</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv
L0VOIj4NCjxodG1sPg0KPGhlYWQ+DQo8dGl0bGU+IGdldENvbXB1dGVkU3R5bGUgPC90aXRsZT4N
CjxzdHlsZT4NCiN0biB7DQogICAgbGVmdDogMTAwcHg7DQogICAgdG9wOiAxMnB4Ow0KICAgIHdp
ZHRoOiAxMmVtOw0KICAgIG1hcmdpbjogMXB4Ow0KICAgIHBhZGRpbmc6IDFweDsNCn0NCjwvc3R5
bGU+DQoNCjwvaGVhZD4NCg0KPGJvZHk+DQo8ZGl2IGlkPSd0bic+PC9kaXY+DQo8c2NyaXB0Pg0K
c2V0VGltZW91dChmdW5jdGlvbigpew0KICAgIC8vIFdoeSBpcyBnZXRDb21wdXRlZFN0eWxlIHNv
IHBhaW5mdWxseSBsb25nPyANCiAgICAvLyBJIHJlYWxseSBvbmx5IGNhcmUgYWJvdXQgdGhlIGVs
ZW1lbnQsIG5vdCANCiAgICAvLyBzb21lIHN0cmFuZ2UgZGVmYXVsdCB2aWV3Lg0KDQogICAgdmFy
IHRuID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ3RuJyk7DQogICAgdmFyIGNzID0gZG9jdW1l
bnQuZGVmYXVsdFZpZXcuZ2V0Q29tcHV0ZWRTdHlsZSh0biwgJycpOw0KDQogICAgdG4uaW5uZXJI
VE1MID0gY3MuZ2V0UHJvcGVydHlWYWx1ZSgnbGVmdCcpIA0KICAgICAgICArICIsICIgDQogICAg
ICAgICsgKGNzLnRvcCkNCiAgICAgICAgKyAiLCAiIA0KICAgICAgICArIGNzLm1hcmdpbg0KICAg
ICAgICArICIsICIgDQogICAgICAgICsgY3MucGFkZGluZw0KICAgICAgICArICI7IjsNCn0sIDEw
KTsNCjwvc2NyaXB0Pg0KPC9ib2R5Pg0KPC9odG1sPg0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>20185</attachid>
            <date>2008-03-28 23:01:48 -0700</date>
            <delta_ts>2008-03-28 23:01:48 -0700</delta_ts>
            <desc>position: relative, left is still auto</desc>
            <filename>getComputedStyle.left-auto.html</filename>
            <type>text/html</type>
            <size>765</size>
            <attacher name="Garrett Smith">xk1t</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv
L0VOIj4NCjxodG1sPg0KPGhlYWQ+DQo8dGl0bGU+IGdldENvbXB1dGVkU3R5bGUgPC90aXRsZT4N
CjxzdHlsZT4NCiN0biB7DQogICAgd2lkdGg6IDEyZW07DQogICAgbWFyZ2luOiAxcHg7DQogICAg
cG9zaXRpb246IHJlbGF0aXZlOw0KICAgIHBhZGRpbmc6IDFweDsNCn0NCjwvc3R5bGU+DQoNCjwv
aGVhZD4NCg0KPGJvZHk+DQo8ZGl2IGlkPSd0bic+PC9kaXY+DQo8c2NyaXB0Pg0Kc2V0VGltZW91
dChmdW5jdGlvbigpew0KICAgIC8vIFdoeSBpcyBnZXRDb21wdXRlZFN0eWxlIHNvIHBhaW5mdWxs
eSBsb25nPyANCiAgICAvLyBJIHJlYWxseSBvbmx5IGNhcmUgYWJvdXQgdGhlIGVsZW1lbnQsIG5v
dCANCiAgICAvLyBzb21lIHN0cmFuZ2UgZGVmYXVsdCB2aWV3Lg0KDQogICAgdmFyIHRuID0gZG9j
dW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ3RuJyk7DQogICAgdmFyIGNzID0gZG9jdW1lbnQuZGVmYXVs
dFZpZXcuZ2V0Q29tcHV0ZWRTdHlsZSh0biwgJycpOw0KDQogICAgdG4uaW5uZXJIVE1MID0gY3Mu
Z2V0UHJvcGVydHlWYWx1ZSgnbGVmdCcpIA0KICAgICAgICArICIsICIgDQogICAgICAgICsgKGNz
LnRvcCkNCiAgICAgICAgKyAiLCAiIA0KICAgICAgICArIGNzLm1hcmdpbg0KICAgICAgICArICIs
ICIgDQogICAgICAgICsgY3MucGFkZGluZw0KICAgICAgICArICI7IjsNCn0sIDEwKTsNCjwvc2Ny
aXB0Pg0KPC9ib2R5Pg0KPC9odG1sPg0K
</data>

          </attachment>
      

    </bug>

</bugzilla>