<?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>122416</bug_id>
          
          <creation_ts>2013-10-06 10:44:45 -0700</creation_ts>
          <short_desc>getComputedStyle returns specified zIndex &quot;&quot; on disconnected elements</short_desc>
          <delta_ts>2022-07-26 14:12:00 -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>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://jsfiddle.net/m_gol/WZrYg/</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="Michał Gołębiowski-Owczarek">m.goleb+bugzilla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>936797</commentid>
    <comment_count>0</comment_count>
    <who name="Michał Gołębiowski-Owczarek">m.goleb+bugzilla</who>
    <bug_when>2013-10-06 10:44:45 -0700</bug_when>
    <thetext>Steps to reproduce the problem:
1. Go to http://jsfiddle.net/m_gol/WZrYg/

What is the expected behavior?
According to http://www.w3.org/TR/cssom/#resolved-value getComputedStyle should return a computed value of zIndex which is 1 if set explicitely even on disconnected elements.

What went wrong?
getComputedStyle returned &quot;&quot; for zIndex on a disconnected element.

Did this work before? No 

Blink bug: https://code.google.com/p/chromium/issues/detail?id=304700</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886881</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-26 13:38:05 -0700</bug_when>
    <thetext>Based on comment from related Chrome / Blink bug (which was marked as &quot;Wontfix&quot;), this is web-spec bug and this is related comment:

https://bugs.chromium.org/p/chromium/issues/detail?id=304700#c15

I am not sure, what is expected behaviour but all browsers (Safari 15.6 on macOS 12.5, Chrome Canary 106 and Firefox Nightly 104) in this JSfiddle just shows - getComputedStyle(div).zIndex:

and nothing but empty void in front of it. I think Web-spec clarification bug can be raised subject to Blink comment but nothing specific to do here IMO, if all browsers agree. (Please ignore my comment - if I am wrong). Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886894</commentid>
    <comment_count>2</comment_count>
    <who name="Michał Gołębiowski-Owczarek">m.goleb+bugzilla</who>
    <bug_when>2022-07-26 14:12:00 -0700</bug_when>
    <thetext>Yeah, it looks like all browsers align here and have for many years (Firefox has changed its behavior in version 65); I guess it&apos;s time to close it as Won&apos;t fix.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>