[Bug 16229] New: Consider a combinator for activating content when a selector matches

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16229

           Summary: Consider a combinator for activating content when a
                    selector matches
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
        AssignedTo: dglazkov@chromium.org
        ReportedBy: dominicc@chromium.org
         QAContact: public-webapps-bugzilla@w3.org


The <content> 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:

<content select="h2:nth-of-type(-n+3)"></content>
<content select="h2:nth-of-type(-n+2)"></content>
<content select="h2:nth-of-type(-n+1)"></content>
<content magic="awesome" select="h2">
  …
</content>

The idea here is that the magic="awesome" attribute changes the behavior of the
content element and the "…" indicator of more tabs would only be displayed if
the selector *did* match more h2 elements.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 5 March 2012 05:35:26 UTC