<?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>16556</bug_id>
          
          <creation_ts>2012-03-28 07:40:28 +0000</creation_ts>
          <short_desc>[Shadow]: What style is expected if a shadow root is added to replaced elements?</short_desc>
          <delta_ts>2012-05-07 19:40:15 +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>WORKSFORME</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>14978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Shinya Kawanaka">shinyak</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66176</commentid>
    <comment_count>0</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-03-28 07:40:28 +0000</bug_when>
    <thetext>Please let me confirm the expected behavior...

Let&apos;s consider the following img elements.

&lt;img id=&quot;e1&quot; src=&quot;foo.jpg&quot; width=&quot;300&quot;&gt;
&lt;img id=&quot;e2&quot; src=&quot;foo.jpg&quot; style=&quot;width: 300px&quot;&gt;

And add the following shadow root to them.

#shadow-root
    &lt;div style=&quot;padding: 10px&quot;&gt;
        &lt;shadow&gt;&lt;/shadow&gt;
    &lt;/div&gt;


What is the expected layout? 
(1) #e1 has 320px width, and #e2 has 320px as well.
(2) #e1 has 300px width, and #e2 has 300px as well.
(3) #e1 has 320px width, but #e2 has 300px width.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66299</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-03-30 23:08:15 +0000</bug_when>
    <thetext>The width attribute and width style property should have the same effect. Also, the behavior should be as if this is:

&lt;div style=&quot;width:300px&quot;&gt;&lt;div style=&quot;padding: 10px&quot;&gt;...&lt;/div&gt;&lt;/div&gt;

Does this make sense?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66322</commentid>
    <comment_count>2</comment_count>
    <who name="Shinya Kawanaka">shinyak</who>
    <bug_when>2012-04-02 02:13:44 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The width attribute and width style property should have the same effect. Also,
&gt; the behavior should be as if this is:
&gt; 
&gt; &lt;div style=&quot;width:300px&quot;&gt;&lt;div style=&quot;padding: 10px&quot;&gt;...&lt;/div&gt;&lt;/div&gt;
&gt; 
&gt; Does this make sense?

Got it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>