<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24379</bug_id>
          
          <creation_ts>2014-01-24 06:26:11 +0000</creation_ts>
          <short_desc>Shadow DOM: Consider defining inertness in terms of the composed tree</short_desc>
          <delta_ts>2017-07-27 10:26:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>blocked on Shadow DOM being mature</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Falkenhagen">falken</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>falken</cc>
    
    <cc>ian</cc>
    
    <cc>kochi</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      <flag name="needinfo"
          id="127"
          type_id="3"
          status="?"
          setter="annevk"
          requestee="falken"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98982</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Falkenhagen">falken</who>
    <bug_when>2014-01-24 06:26:11 +0000</bug_when>
    <thetext>(This bug was originally https://www.w3.org/Bugs/Public/show_bug.cgi?id=22898)

In the HTML spec, any node that is not an ancestor or descendant of the active modal dialog is marked inert.[1]

It seems the ancestor/descendant relation should be based on the composed tree (a Shadow DOM concept). Otherwise, children that have been transposed into a modal &lt;dialog&gt;&apos;s subtree are considered inert, although they are rendered as if they are real children of the &lt;dialog&gt;. This is surprising to the user interacting with the dialog.

I guess to spec the desired behavior, the HTML spec will need to make a mention of the Shadow DOM spec.

See also https://code.google.com/p/chromium/issues/detail?id=269842

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#inert</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99043</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-24 23:32:33 +0000</bug_when>
    <thetext>The way I did this in XBL, IIRC, was to define a merged tree that CSS works on, and to say that certain algorithms work on that tree instead of the &quot;real&quot; tree.

I&apos;d rather not have to mention shadow trees in all the relevant algorithms in HTML, at least not until the Shadow DOM stuff is far more established (at which time maybe we would just merge it into the DOM spec and update HTML accordingly).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125605</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-03-23 12:55:26 +0000</bug_when>
    <thetext>Matt, is this something you&apos;d be willing to patch in HTML?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128791</commentid>
    <comment_count>3</comment_count>
    <who name="Takayoshi Kochi">kochi</who>
    <bug_when>2017-07-27 10:26:38 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/653</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>