- From: <bugzilla@jessica.w3.org>
- Date: Tue, 25 Jun 2013 18:05:01 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22462
Bug ID: 22462
Summary: [Shadow]: Consider adding an applyAuthorHostStyles
flag
Classification: Unclassified
Product: WebAppsWG
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Component Model
Assignee: dglazkov@chromium.org
Reporter: sorvell@chromium.org
QA Contact: public-webapps-bugzilla@w3.org
Blocks: 14978
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 25 June 2013 18:05:03 UTC