This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The ::part() api allows a convenient way to target parts of a shadowRoot from a scope in which the host element is targetable. However, the host is only targetable in the styling scope in which it exists. An author may want to make its parts style-able from any scope. e.g. #host::part(header) { ... } The applyAuthorStyles flag exists for a similar use case: to allow styling shadowRoot contents from any enclosing scope. However, it is undesirable in the case that an author wants only to expose specifically defined parts to the enclosing scopes. For this case, we should introduce a new flag: applyAuthorHostStyles. This would make the shadowRoot host element and any ::part targetable from any enclosing scope. Selectors that can match the host element when applyAuthorHostStyles is used would be required to match entirely within the scope of the host element.
(In reply to comment #0) do I understand it correctly that there's gonna be a shitch to make <style> div::part(internal) { ... } </style> <div> SR <header></header> <div> SR <section part="internal"></header> work? BK
I think this is obsolete. '^' and '^^' can resolve this use case, can't they? Please feel free to reopen this if you have any concerns.