<?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>20186</bug_id>
          
          <creation_ts>2012-11-30 18:06:33 +0000</creation_ts>
          <short_desc>[Custom]: Add a CSS pseudo to distinguish between upgraded, custom elements</short_desc>
          <delta_ts>2012-12-10 20:30:47 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>18534</dup_id>
          
          <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>14968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Buchner">danieljb2</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>sjmiles</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>79198</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Buchner">danieljb2</who>
    <bug_when>2012-11-30 18:06:33 +0000</bug_when>
    <thetext>There should be a sane way to distinguish/style elements in their original, non-upgraded state. We don&apos;t want every component developer to roll their own attribute flag for this, as it will surely be a common case.

You can approach this from two angles: a pseudo to specify an element is upgraded, :upgraded, or a pseudo for custom elements that are yet to be upgraded, :beforeupgrade.

I can almost guarantee devs will write far more styles targeting the upgraded state, and mostly small visual stuff for elements that are not yet upgraded (a background spinner for instance).

Not sure what route to take, thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79306</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-12-03 17:33:55 +0000</bug_when>
    <thetext>Scott, Steve -- would love to have your ideas here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79307</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-12-03 17:35:32 +0000</bug_when>
    <thetext>Right now, there&apos;s http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#unknown-element-pseudoclass.

This should give you the ability to style anything that hasn&apos;t upgraded yet. For example, if you have x-foo element:

x-foo:unknown &lt;-- matches before upgrade
x-foo &lt;-- matches upgraded</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79309</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Buchner">danieljb2</who>
    <bug_when>2012-12-03 17:43:10 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Right now, there&apos;s
&gt; http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.
&gt; html#unknown-element-pseudoclass.
&gt; 
&gt; This should give you the ability to style anything that hasn&apos;t upgraded yet.
&gt; For example, if you have x-foo element:
&gt; 
&gt; x-foo:unknown &lt;-- matches before upgrade
&gt; x-foo &lt;-- matches upgraded

Gosh, I must have overlooked that. In that case, the bases seem covered!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79857</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-12-10 20:30:47 +0000</bug_when>
    <thetext>yay!

*** This bug has been marked as a duplicate of bug 18534 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>