<?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>19897</bug_id>
          
          <creation_ts>2012-11-07 20:03:15 +0000</creation_ts>
          <short_desc>[Shadow]: Add Custom Pseudo-Elements example</short_desc>
          <delta_ts>2012-12-04 06:56:24 +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>FIXED</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>18428</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>miket</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>sgrekhov</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78006</commentid>
    <comment_count>0</comment_count>
    <who name="">miket</who>
    <bug_when>2012-11-07 20:03:15 +0000</bug_when>
    <thetext>Section 5.10 Custom Pseudo-Elements could do with a code example to clarify how it all works. As an author, the mechanics aren&apos;t crystal clear--and there isn&apos;t any mention in the Explainer.

Going with the example of the 2-dimensional range slider widget, is the following enough to actually create the custom pseudo-element for the slider thumb, called &quot;x-slider-thumb&quot;?

var thumb = shadowRoot.getElementById(&apos;slider-thumb&apos;)
thumb.pseudo = &quot;x-slider-thumb&quot;

And then I can use it in my page&apos;s stylesheet like so,

:x-slider-thumb {background-color: rgba(0,0,0,.75)}

I might have it wrong, but a correct example would be helpful here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78008</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-11-07 20:50:47 +0000</bug_when>
    <thetext>Word.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79091</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey G. Grekhov">sgrekhov</who>
    <bug_when>2012-11-29 05:24:33 +0000</bug_when>
    <thetext>I vote for the example too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79300</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-12-03 16:46:18 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/webcomponents/rev/76e968e547e9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79302</commentid>
    <comment_count>4</comment_count>
    <who name="">miket</who>
    <bug_when>2012-12-03 16:52:49 +0000</bug_when>
    <thetext>Great!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79379</commentid>
    <comment_count>5</comment_count>
    <who name="Sergey G. Grekhov">sgrekhov</who>
    <bug_when>2012-12-04 06:56:24 +0000</bug_when>
    <thetext>Thank you! See also implementation issue https://bugs.webkit.org/show_bug.cgi?id=103973</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>