<?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>190580</bug_id>
          
          <creation_ts>2018-10-15 08:21:26 -0700</creation_ts>
          <short_desc>display:unset does not stop an element from creating a new formatting context for sticky children.</short_desc>
          <delta_ts>2021-08-25 03:55:36 -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>CSS</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>224415</dup_id>
          
          <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="Dan Peddle">dan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dan</cc>
    
    <cc>mrobinson</cc>
    
    <cc>ntim</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>1469220</commentid>
    <comment_count>0</comment_count>
      <attachid>352321</attachid>
    <who name="Dan Peddle">dan</who>
    <bug_when>2018-10-15 08:21:26 -0700</bug_when>
    <thetext>Created attachment 352321
testcase

The `display: unset` rule should stop any element where it is applied from creating a new containing block.

This bug was found by nesting a position sticky inside a plain div with a single `display:unset` rule.

Expected behaviour - the sticky element should take its containing block from body (being the closest block formatting context)

Actual behaviour - The sticky element takes its containing block from the parent div

Steps to reproduce: scroll down and observe that sticky element does not stick. 

Works as expected in most recent Firefox and Chrome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1470194</commentid>
    <comment_count>1</comment_count>
    <who name="Dan Peddle">dan</who>
    <bug_when>2018-10-17 10:54:16 -0700</bug_when>
    <thetext>I&apos;ve played a bit more, and `display: unset` works as expected for other child elements - seems like `position: -webkit-sticky` is the only thing that&apos;s misbehaving.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1470211</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-10-17 11:22:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/45344773&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1758368</commentid>
    <comment_count>3</comment_count>
    <who name="Dan Peddle">dan</who>
    <bug_when>2021-05-09 14:11:36 -0700</bug_when>
    <thetext>Still present in Safari 14, description updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1787134</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2021-08-25 03:55:36 -0700</bug_when>
    <thetext>This should be fixed now.

*** This bug has been marked as a duplicate of bug 224415 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>352321</attachid>
            <date>2018-10-15 08:21:26 -0700</date>
            <delta_ts>2018-10-15 08:21:26 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>sticky.html</filename>
            <type>text/html</type>
            <size>992</size>
            <attacher name="Dan Peddle">dan</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPHRpdGxlPmJ1ZzwvdGl0bGU+CiAg
ICA8c3R5bGU+CiAgICAgICAgCiAgICAgICAgLmZvbyB7CiAgICAgICAgICAgIGRpc3BsYXk6IHVu
c2V0OyAKICAgICAgICB9CiAgICAgICAgbmF2IHsKICAgICAgICAgICAgcG9zaXRpb246IC13ZWJr
aXQtc3RpY2t5OwogICAgICAgICAgICBwb3NpdGlvbjogc3RpY2t5OwogICAgICAgICAgICBwYWRk
aW5nOiAxcmVtOwogICAgICAgICAgICBiYWNrZ3JvdW5kOiBncmVlbjsKICAgICAgICAgICAgdG9w
OiAwOwogICAgICAgIH0KICAgICAgICAuaW5uZXIgewogICAgICAgICAgICBtYXgtd2lkdGg6IDEy
MDBweDsKICAgICAgICAgICAgbWFyZ2luOiAwIGF1dG87CiAgICAgICAgfQogICAgICAgIC5ibG9j
a3MgewogICAgICAgICAgICBtYXgtd2lkdGg6IDEyMDBweDsKICAgICAgICAgICAgbWFyZ2luOiAw
IGF1dG87CiAgICAgICAgfQogICAgICAgIC5ibG9ja3MgZGl2IHsKICAgICAgICAgICAgd2lkdGg6
IDEwMCU7CiAgICAgICAgICAgIGhlaWdodDogODAwcHg7CiAgICAgICAgICAgIGJhY2tncm91bmQ6
IGJsdWU7CiAgICAgICAgICAgIG1hcmdpbi1ib3R0b206IDFyZW07CiAgICAgICAgfQogICAgPC9z
dHlsZT4KICA8L2hlYWQ+CiAgPGJvZHk+CiAgICA8ZGl2IGNsYXNzPSJmb28iPgogICAgICA8ZGl2
IGNsYXNzPSJpbm5lciI+CiAgICAgICAgPHNwYW4+YmFubmVyPC9zcGFuPgogICAgICA8L2Rpdj4K
ICAgICAgPG5hdj4KICAgICAgICA8ZGl2IGNsYXNzPSJpbm5lciI+CiAgICAgICAgPHNwYW4+MTwv
c3Bhbj4KICAgICAgICA8c3Bhbj4yPC9zcGFuPgogICAgICAgIDwvZGl2PgogICAgICA8L25hdj4K
ICAgIDwvZGl2PgogICAgPGRpdiBjbGFzcz0iYmxvY2tzIj4KICAgICAgPGRpdj48L2Rpdj4KICAg
ICAgPGRpdj48L2Rpdj4KICAgICAgPGRpdj48L2Rpdj4KICAgICAgPGRpdj48L2Rpdj4KICAgIDwv
ZGl2PgogIDwvYm9keT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>