<?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>18435</bug_id>
          
          <creation_ts>2012-07-30 05:29:47 +0000</creation_ts>
          <short_desc>[Shadow]: Needs consistent way to style the inner element of replaced elements.</short_desc>
          <delta_ts>2014-05-29 08:29:57 +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>LATER</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>23062</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Shinya Kawanaka">shinyak</reporter>
          <assigned_to name="Hayato Ito">hayato</assigned_to>
          <cc>hayato</cc>
    
    <cc>mfursov</cc>
    
    <cc>tasak</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71651</commentid>
    <comment_count>0</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-07-30 05:29:47 +0000</bug_when>
    <thetext>When we add a Shadow DOM to replaced elements (e.g. img, input, iframe, etc), we would like to style the inner element of them. However, there is no standardized way to style them.

For example:
  We can easily style an img element if it does not have an AuthorShadowDOM.
    img {
        width: 100px;
        height: 100px;
    }

  Then we add an AuthorShadowDOM for an img element, and let the innerHTML of the AuthorShadowRoot be &quot;&lt;div style=&apos;margin: 10px&apos;&gt;&lt;shadow&gt;&lt;/shadow&gt;&lt;/style&gt;&quot;. Since the width of the img element is 100px, and the inner element has 10px margin. It&apos;s OK. But how do we set the width of an image itself? 

In WebKit implementation, we have pseudo id of such element. So we can style it anyway.
However, when it comes to the spec, we should have some standardized way to style them, I believe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77003</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-10-23 23:08:00 +0000</bug_when>
    <thetext>This is blocked on the CSS WG work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78132</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-11-09 17:03:46 +0000</bug_when>
    <thetext>*** Bug 19919 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106970</commentid>
    <comment_count>3</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-05-29 08:29:57 +0000</bug_when>
    <thetext>Let me mark this LATER.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>