<?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>15295</bug_id>
          
          <creation_ts>2011-12-21 09:10:11 +0000</creation_ts>
          <short_desc>[Shadow]: Clarify the intent of rendering content elements as fallback content of shadow elements and vice-versa</short_desc>
          <delta_ts>2011-12-21 20:15:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61863</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-12-21 09:10:11 +0000</bug_when>
    <thetext>Is the intent for it to be possible to use content and shadow elements as fallback content for content and shadow elements?

The algorithm described in &quot;Rendering Shadow DOM Subtrees&quot; has two holes:

In the case of this shadow:

&lt;shadow&gt;
  &lt;content id=&quot;a&quot;&gt;&lt;/content&gt;
&lt;/shadow&gt;

When there is no older shadow tree, the algorithm hits this case:

2.(third bullet).2: Otherwise, render fallback content as any DOM subtree

ie since it does not specify &quot;…but with the same rendering exceptions&quot; this means that any nodes distributed to #a are not rendered. Is this intentional?

The opposite case:

&lt;content id=&quot;a&quot;&gt;
  &lt;shadow&gt;&lt;/shadow&gt;
&lt;/content&gt;

when there are no nodes distributed to #a likewise specifies rendering &lt;shadow&gt;&lt;/shadow&gt; as any DOM subtree and not with shadow DOM rendering exceptions.

Likewise for

&lt;content select=&quot;…&quot;&gt;
  &lt;content select=&quot;…&quot;&gt;&lt;/content&gt;
&lt;/content&gt;

Could the spec provide commentary on whether the intent? And if the intent is that it is possible to use content and shadow as fallback content for content and shadow, the algorithm needs to be fixed to support this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61893</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2011-12-21 20:15:24 +0000</bug_when>
    <thetext>Tweaked the wording to explicitly state that fallback content doesn&apos;t get to play with insertion points.

http://dvcs.w3.org/hg/webcomponents/rev/4944c784494e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>