<?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>18738</bug_id>
          
          <creation_ts>2012-08-29 22:01:18 +0000</creation_ts>
          <short_desc>[Custom]: Specify that type selectors match all derived types</short_desc>
          <delta_ts>2013-04-10 21:00: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>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>18720</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov">dglazkov</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>bugs</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>jackalmage</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73019</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-08-29 22:01:18 +0000</bug_when>
    <thetext>Since we&apos;re using custom tags now, we need to modify the meaning of type selector to match tag names of all elements in the prototype chain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73042</commentid>
    <comment_count>1</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2012-08-30 03:48:30 +0000</bug_when>
    <thetext>Could you explain what this is actually about.
(I think you mentioned this last week, and this still feels überscary :) )
Special casing APIs makes them in general worse.

Also, we need to make sure to not slow down selector matching.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77325</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-10-29 21:27:03 +0000</bug_when>
    <thetext>I think it was Boris who came up with this.

http://dev.w3.org/csswg/selectors4/#type-selectors

In order for &lt;x-button&gt; (a subclass of HTMLButtonElement) to also match UA styles for &lt;button&gt;, we redefine &quot;element type&quot; to mean:

1) the element itself -- x-button
2) all types it is inherited from -- button.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77339</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-10-29 22:15:11 +0000</bug_when>
    <thetext>Tab, what&apos;s the likelihood of something like this flying well with CSS WG?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77345</commentid>
    <comment_count>4</comment_count>
    <who name="Tab Atkins Jr.">jackalmage</who>
    <bug_when>2012-10-29 22:49:49 +0000</bug_when>
    <thetext>Good question!  I dunno.  I mean, *ultimately* it&apos;s the responsibility of the host language, not CSS, to define the tree that Selectors match over.  It can potentially define *whatever it wants* to match the string in a &quot;tag&quot; selector, or a &quot;class&quot; selector.

However, we should poke at the CSSWG to make sure other people don&apos;t think we&apos;re crazy for doing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85886</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-04-10 21:00:27 +0000</bug_when>
    <thetext>No longer necessary. Elements, derived from built-in HTML elements are required to use type extensions.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>