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 22788 - [Shadow]: Clarify apply-author-styles when styling elements in shadow trees based on host element
Summary: [Shadow]: Clarify apply-author-styles when styling elements in shadow trees b...
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Hayato Ito
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20957
  Show dependency treegraph
 
Reported: 2013-07-24 06:05 UTC by Takashi Sakamoto
Modified: 2014-01-15 06:53 UTC (History)
1 user (show)

See Also:


Attachments

Description Takashi Sakamoto 2013-07-24 06:05:49 UTC
Since styles in shadow trees can select host element, we should clarify apply-author-styles of shadow roots of the host element.

for example,

style id="style0"
    #host { border: 1px solid blue; }
div
    #shadow-root
        style id="style1"
            #host { background-color: red; }
        div id="host"
            #shadow-root[apply-author-styles=true]
                style id="style2"
                    #host { background-color: green; }
                div

- The shadow root of div#host has apply-author-styles true.
- The shadow root containing div#host has apply-author-styles false.

My concern is whether styles in style#style0 will match div#host or not.

Currently, I think, "match".

c.f.
https://docs.google.com/document/d/1GWUtAjDUtJ8Ae0Yt3rBVsFmfpfoUa5ALK3WNWCHRtVk/edit?usp=sharing
Comment 1 Hayato Ito 2014-01-15 06:53:25 UTC
Closing this because apply-author-styles was gone.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23625