-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interaction between CSS and composed tree needs to be better defined #305
Comments
FYI. Maybe we should update this section: Yeah, there is a duplication there, which we must resolve. |
Okay, now I have a slightly clear picture of what's happening. My comment on #308 (comment) will clarify some confusion about this. On the contrary to what I wrote here, we probably want to expose shadow DOM before composition as is to CSS because style rules and inheritance resolution need to be intimately familiar with shadow boundaries and the relationship between trees. We can't simply hand the composed tree to the style engine and let it all work. The style engine needs to know from which tree style rule came from, etc... So, I think we should remove the entire section about the composed tree and how it's used and leave it to CSS Scoping to define what it does with shadow DOM in general. Shadow DOM spec then just needs to define what constitutes a slot and how nodes are distributed into the slot. |
Thanks. Yeah, I agree that that's the ultimate goal we should achieve. I'm now triaging all Shadow DOM v1 issues and make some of v1 issues into v2 if the interoperability risk between UAs is low. Please feel free to re-label with v1 if someone find an interpretability risk. |
This issue looks obsolete. Closing. |
Section 2.4 defines composed tree but its purpose and use isn't clarified in the section.
Also the following text refers to the concept of "formatting structure" but this is a concept defined in a non-normative section of CSS2.1.
I think, we want to define the composed tree as the document tree in CSS instead. Otherwise definitions of sibling, ancestor, etc... in the CSS world wouldn't make sense.
The text was updated successfully, but these errors were encountered: