<?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>4125</bug_id>
          
          <creation_ts>2005-07-25 03:40:53 -0700</creation_ts>
          <short_desc>getComputedStyle returns null when called on an element which has display: none set</short_desc>
          <delta_ts>2007-01-23 11:53:53 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Thomas Fuchs">thomas</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ian</cc>
    
    <cc>mitz</cc>
    
    <cc>ssaviano</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15161</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Fuchs">thomas</who>
    <bug_when>2005-07-25 03:40:53 -0700</bug_when>
    <thetext>getComputedStyle returns null when called on an element which has display: none set.

&lt;style&gt;
 #x { display:none; }
&lt;/style&gt;

&lt;div id=&quot;x&quot;&gt;test&lt;/div&gt;

document.defaultView.getComputedStyle(document.getElementById(&apos;x&apos;), null)  returns null (but should 
return the computed CSS styles object). This works when display:none; is removed.

Note that this works all ok in Gecko-based browsers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15162</commentid>
    <comment_count>1</comment_count>
      <attachid>3079</attachid>
    <who name="Thomas Fuchs">thomas</who>
    <bug_when>2005-07-25 03:44:22 -0700</bug_when>
    <thetext>Created attachment 3079
Test case showing the null return</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43563</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2006-05-25 11:43:54 -0700</bug_when>
    <thetext>Reassigning bug to default assignee to make it more visible.  (I don&apos;t believe Dave is working on this.)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53394</commentid>
    <comment_count>3</comment_count>
    <who name="Vladimir Olexa (vladinecko)">vladimir.olexa</who>
    <bug_when>2006-10-11 15:54:47 -0700</bug_when>
    <thetext>this seems to be working/fixed now. (using r. 16732)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33003</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-01-23 11:51:56 -0800</bug_when>
    <thetext>*** Bug 12384 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33005</commentid>
    <comment_count>5</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-01-23 11:53:53 -0800</bug_when>
    <thetext>Oops, bug 12384 is not a duplicate of this bug. This bug seems to be fixed in that a style declaration is returned, however all its properties are null, which bug 12384 is about.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3079</attachid>
            <date>2005-07-25 03:44:22 -0700</date>
            <delta_ts>2005-07-25 03:44:22 -0700</delta_ts>
            <desc>Test case showing the null return</desc>
            <filename>webkit_bug_4125.html</filename>
            <type>application/xhtml+xml</type>
            <size>702</size>
            <attacher name="Thomas Fuchs">thomas</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25h
bC5kdGQiPgo8aHRtbCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+CjxoZWFk
Pgo8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hh
cnNldD1pc28tODg1OS0xIiAvPgo8dGl0bGU+VGVzdCBjYXNlIGZvciBCdWcgIzQxMjU8L3RpdGxl
Pgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgojeCB7CiAgZGlzcGxheTogbm9uZTsKfQojeSB7CiAg
ZGlzcGxheTogYmxvY2s7Cn0KPC9zdHlsZT4KPC9oZWFkPgo8Ym9keT4KPGRpdiBpZD0ieCI+dGVz
dCAtIG5vdCB3b3JraW5nPC9kaXY+CjxkaXYgaWQ9InkiPnRlc3QgLSB3b3JraW5nPC9kaXY+Cgo8
c2NyaXB0IHR5cGU9InRleHQvamF2YXNjcmlwdCIgbGFuZ3VhZ2U9ImphdmFzY3JpcHQiPgogIGFs
ZXJ0KGRvY3VtZW50LmRlZmF1bHRWaWV3LmdldENvbXB1dGVkU3R5bGUoZG9jdW1lbnQuZ2V0RWxl
bWVudEJ5SWQoJ3gnKSxudWxsKSk7CiAgYWxlcnQoZG9jdW1lbnQuZGVmYXVsdFZpZXcuZ2V0Q29t
cHV0ZWRTdHlsZShkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgneScpLG51bGwpKTsKPC9zY3JpcHQ+
Cgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>