<?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>16229</bug_id>
          
          <creation_ts>2012-03-05 05:35:23 +0000</creation_ts>
          <short_desc>[Shadow]: Consider a combinator for activating content when a selector matches</short_desc>
          <delta_ts>2014-02-11 18:58:27 +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>WONTFIX</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>15480</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dominicc</cc>
    
    <cc>shinyak</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65009</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-03-05 05:35:23 +0000</bug_when>
    <thetext>The &lt;content&gt; element’s fallback content is displayed when its selector does not match anything. It would be useful if there was an element whose fallback content is displayed when the selector matches something, ie the fallback content is displayed in lieu of the selected content.

For example, you could make the labels of a tab strip this way:

&lt;content select=&quot;h2:nth-of-type(-n+3)&quot;&gt;&lt;/content&gt;
&lt;content select=&quot;h2:nth-of-type(-n+2)&quot;&gt;&lt;/content&gt;
&lt;content select=&quot;h2:nth-of-type(-n+1)&quot;&gt;&lt;/content&gt;
&lt;content magic=&quot;awesome&quot; select=&quot;h2&quot;&gt;
  …
&lt;/content&gt;

The idea here is that the magic=&quot;awesome&quot; attribute changes the behavior of the content element and the &quot;…&quot; indicator of more tabs would only be displayed if the selector *did* match more h2 elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65042</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-03-05 20:13:21 +0000</bug_when>
    <thetext>whoa.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100310</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2014-02-11 18:58:27 +0000</bug_when>
    <thetext>In these situations, the author might be better of with an imperative API?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>