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 17515 - [Shadow]: @host and shadow insertion point
Summary: [Shadow]: @host and shadow insertion point
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on: 18382
Blocks: 15480
  Show dependency treegraph
 
Reported: 2012-06-16 15:41 UTC by Dimitri Glazkov
Modified: 2013-07-17 18:21 UTC (History)
1 user (show)

See Also:


Attachments

Description Dimitri Glazkov 2012-06-16 15:41:30 UTC
what does the @host do when the tree is itself assigned into a shadow insertion point?

Should it match <shadow>?
Comment 1 Dominic Cooney 2012-06-18 01:48:13 UTC
To clarify, this would let people style the <shadow> element, however it would only affect inherited values since <shadow> element is not itself rendered?

The news widget use case in the spec would get more utility by @host identifying <shadow>, since it is still a news widget. But what is the essential issue? Is uniform composition like that always the case? Maybe more use cases will be illustrative.
Comment 2 Dimitri Glazkov 2012-07-26 22:24:58 UTC
Bug 18382 has a different approach to the problem.
Comment 3 Dimitri Glazkov 2012-08-03 17:37:44 UTC
When shadow DOM is used to create controls/widget, the @host rules could be seen as a way to provide default styling for the box, surrounding the said widget. 

For example, imagine that <input type="text">'s typical outline is actually styled using @host rules. 

Now, I want to add small icon inside of the input field to indicate something about the text content (calendar icon, for instance, to click and bring up a date picker). Always applying @host to the shadow host is the desired behavior here, since when I include the older shadow in my calendar icon shadow DOM subtree, I still want the text field's outline to be on the host, not at inclusion point.

However, if instead I want to add, say a password-strength indicator to the right of the field, I do want to put the outline styles somewhere on the <shadow> (but where?)
Comment 4 Dimitri Glazkov 2012-08-03 17:59:26 UTC
Punting until next draft.
Comment 5 Dimitri Glazkov 2013-07-17 18:21:04 UTC
There's no @host anymore, closing.