<?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>27637</bug_id>
          
          <creation_ts>2014-12-17 11:35:54 +0000</creation_ts>
          <short_desc>[Shadow]: Explain the CSS inheritance in terms of Composed Tree</short_desc>
          <delta_ts>2015-04-15 05:50:17 +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>14978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Hayato Ito">hayato</reporter>
          <assigned_to name="Hayato Ito">hayato</assigned_to>
          <cc>annevk</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116416</commentid>
    <comment_count>0</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-12-17 11:35:54 +0000</bug_when>
    <thetext>Although css-scoping spec, 3.3.2. Inheritance [1], explains how the inheritance works for Shadow DOM, I think that should be moved to Shadow DOM spec and should be explained in terms of Composed Tree so that we can make it more strict definition.

One more goal is to get rid of the following paragraph from the Shadow DOM spec [2]:

&gt; In rendering a document tree, or presenting it visually, the composed tree must be used instead of the document tree.

&gt; The composed tree must be updated before the rendering occurs.


We should also mention that if a node is not in the composed tree (with document as root), the node doesn&apos;t have a CSS layout boxes explicitly.
The exact condition of that should be worth considering, though.


[1]: http://dev.w3.org/csswg/css-scoping/#inheritance
[2]: http://w3c.github.io/webcomponents/spec/shadow/#composed-trees</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116425</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-12-17 17:22:29 +0000</bug_when>
    <thetext>I think whatever specification defines CSS layout needs to be changed to operate on the composed tree. (I guess we can monkey patch it for now...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116456</commentid>
    <comment_count>2</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-12-18 05:37:04 +0000</bug_when>
    <thetext>(In reply to Anne from comment #1)
&gt; I think whatever specification defines CSS layout needs to be changed to
&gt; operate on the composed tree. (I guess we can monkey patch it for now...)

Thank you. I wasn&apos;t aware of that. Let me investigate further how we can monkey patch it for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116468</commentid>
    <comment_count>3</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-12-18 09:00:37 +0000</bug_when>
    <thetext>Fixed at https://github.com/w3c/webcomponents/commit/1709f1242810a380bf641f85b67bb179e7ff39d8

I appreciate any feedback.

Tab, could you remove the section, &quot;3.3.2. Inheritance&quot;, from the css-scoping if you are comfortable with this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119512</commentid>
    <comment_count>4</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-04-15 05:50:17 +0000</bug_when>
    <thetext>I&apos;ve filed a bug for CSS Scoping. https://www.w3.org/Bugs/Public/show_bug.cgi?id=28492

Let me close the bug in Shadow DOM side.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>