<?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>224374</bug_id>
          
          <creation_ts>2021-04-09 09:06:20 -0700</creation_ts>
          <short_desc>Z-index not respected when using transform: translate</short_desc>
          <delta_ts>2021-04-16 09:07:18 -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>Compositing</component>
          <version>Safari 14</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 11</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="Mark Fisher">mfishe</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <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>1748751</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Fisher">mfishe</who>
    <bug_when>2021-04-09 09:06:20 -0700</bug_when>
    <thetext>See this codepen: https://codepen.io/markfisher/pen/WNRdNZp

I have a table with sticky column headers and sticky row headers. The row headers use native &quot;position: sticky&quot;. Since the table is in a container element with scroll overflow, I need to translate the thead element in a scroll handler as an alternative to native sticky.
 
In Chrome and Firefox (and I believe every browser other than Safari) the row headers correctly appear underneath the row headers, since the thead element has a higher z index than the row headers. However, in Safari, the row headers go above the column headers. I found this issue mentioned on Stackoverflow (though funnily enough I can&apos;t find any bug report quite matching this issue) and a workaround was suggested of using translateZ instead of z-index to achieve the desired effect. However, this workaround does not work when the table is in a container with scroll overflow, as in my codepen.

I presume this is a bug. Is there any workaround?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1751097</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-04-16 09:07:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/76763050&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>