<?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>229315</bug_id>
          
          <creation_ts>2021-08-19 17:42:22 -0700</creation_ts>
          <short_desc>Top layer elements should not be affected by parent layout (e.g. display: table-column or CSS content property)</short_desc>
          <delta_ts>2022-02-18 13:04:24 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          
          <blocked>84635</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Nguyen (:ntim)">ntim</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>1785649</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2021-08-19 17:42:22 -0700</bug_when>
    <thetext>2 main items from https://fullscreen.spec.whatwg.org/#new-stacking-layer :

* If its position property computes to fixed, its containing block is the viewport, and the initial containing block otherwise.

webkit.org/b/84796 imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/removed-element-is-removed-from-top-layer.html [ ImageOnlyFailure ]
webkit.org/b/84796 imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/top-layer-containing-block.html [ ImageOnlyFailure ]
webkit.org/b/84796 imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/top-layer-stacking.html [ ImageOnlyFailure ]

Modal dialogs have position: fixed by default with UA styles hence why it&apos;s relevant to those tests, and looking at the results, it&apos;s mostly top/bottom/right/left position which look wrong, making me think this is mostly containing block related.

* It is rendered as an atomic unit as if it were a sibling of its root.

Ancestor elements with [...] cannot affect it.

webkit.org/b/84796 imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/modal-dialog-in-replaced-renderer.html [ ImageOnlyFailure ]
webkit.org/b/84796 imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/modal-dialog-in-table-column.html [ ImageOnlyFailure ]

These tests use particular cases like content: url() or display: table-column on the ancestor and open a modal dialog inside.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1785989</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-20 14:37:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/82186174&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1802844</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2021-10-11 15:27:16 -0700</bug_when>
    <thetext>The containing block bits have been split out to bug 231292</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1843592</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-02-18 13:04:24 -0800</bug_when>
    <thetext>This is the expected behaviour, we should work to get the spec changed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>