<?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>22268</bug_id>
          
          <creation_ts>2013-06-04 20:33:21 +0000</creation_ts>
          <short_desc>[Shadow]: Consider a &lt;content&gt; selector for &quot;nodes not otherwise distributed&quot;</short_desc>
          <delta_ts>2015-05-27 03:22:56 +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>MOVED</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>
          <dependson>18429</dependson>
          <blocked>28552</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Miksovsky">jan</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>annevk</cc>
    
    <cc>dominicc</cc>
    
    <cc>hayato</cc>
    
    <cc>labriola</cc>
    
    <cc>sorvell</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88655</commentid>
    <comment_count>0</comment_count>
    <who name="Jan Miksovsky">jan</who>
    <bug_when>2013-06-04 20:33:21 +0000</bug_when>
    <thetext>See the thread at https://groups.google.com/forum/#!topic/polymer-dev/mTM1-rByfZY for a limitation of the current spec.

The current design of &lt;content&gt;&lt;/content&gt; means the default insertion point for all nodes not otherwise distributed (via select=&quot;...&quot;) must always appear last in the template. This could lead to situations where it is difficult to update a template and reposition this default insertion point before other insertion points that have explicit select=&quot;...&quot; clauses.

It would be beneficial if there were a way to explicit indicate that &lt;content&gt;&lt;/content&gt; element should pick up all nodes not otherwise distribution to other insertion points. Alternatively, the meaning of the plain &lt;content&gt;&lt;/content&gt; form could be changed to: &quot;insert here all nodes not otherwise distributed, including nodes distributed to insertion points which follow this default insertion point&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88703</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2013-06-05 06:50:43 +0000</bug_when>
    <thetext>You may be able to work around this problem by using CSS Regions.

Two slightly more powerful mechanisms than the proposal to make &lt;content&gt; happen &quot;last&quot; are:

1. Distribute to &lt;content&gt; elements not in document order, but in selector specificity order. Make &lt;content&gt; with no selector less specific than any selector. Document order of &lt;content&gt; element is a fallback for tiebreaking.

2. Let the author separately specify an order to do distribution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88787</commentid>
    <comment_count>2</comment_count>
    <who name="Jan Miksovsky">jan</who>
    <bug_when>2013-06-06 00:42:16 +0000</bug_when>
    <thetext>I think you understand the use case, and defer to your judgment on the best solution. My proposal was just an example.

For reference: I did try using CSS regions to workaround this problem, but am unable to get this to work. See http://jsbin.com/areqez/1/edit. I&apos;ll follow up separately on that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94678</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Labriola">labriola</who>
    <bug_when>2013-10-14 19:21:00 +0000</bug_when>
    <thetext>
Personally I like @Dominic&apos;s first proposal. I think the root of the problem is that node distribution is in document order instead of the order of a form of specificity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95959</commentid>
    <comment_count>4</comment_count>
    <who name="Steve Orvell">sorvell</who>
    <bug_when>2013-11-07 15:28:28 +0000</bug_when>
    <thetext>I prefer Dominic&apos;s suggestion #2. The author could specify selectIndex attribute on insertion points which would conceptually act like tabIndex.

I think the problem with #1 is that the set of selectors used for insertion points is already highly limited. I think, in practice, this would make using specificity problematic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119919</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-04-27 05:45:15 +0000</bug_when>
    <thetext>This might be moot if we get an API.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120527</commentid>
    <comment_count>6</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-05-27 03:22:56 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>