This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27637 - [Shadow]: Explain the CSS inheritance in terms of Composed Tree
Summary: [Shadow]: Explain the CSS inheritance in terms of Composed Tree
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Hayato Ito
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14978
  Show dependency treegraph
 
Reported: 2014-12-17 11:35 UTC by Hayato Ito
Modified: 2015-04-15 05:50 UTC (History)
4 users (show)

See Also:


Attachments

Description Hayato Ito 2014-12-17 11:35:54 UTC
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]:

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

> 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'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
Comment 1 Anne 2014-12-17 17:22:29 UTC
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...)
Comment 2 Hayato Ito 2014-12-18 05:37:04 UTC
(In reply to Anne from comment #1)
> 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...)

Thank you. I wasn't aware of that. Let me investigate further how we can monkey patch it for now.
Comment 3 Hayato Ito 2014-12-18 09:00:37 UTC
Fixed at https://github.com/w3c/webcomponents/commit/1709f1242810a380bf641f85b67bb179e7ff39d8

I appreciate any feedback.

Tab, could you remove the section, "3.3.2. Inheritance", from the css-scoping if you are comfortable with this?
Comment 4 Hayato Ito 2015-04-15 05:50:17 UTC
I'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.