This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
All developers I know who tried apply-author-styles told me that the flag is useless because of the weird "either match wholly inside or outside" rule and is very unlikely to be used in real life. I think we should try removing it from the spec.
I didn't realize this was going away too. Does ^ && ^^ fully replace shadow dom styling? Isn't it still convenient to have components take on the look and feel of their embedding page. applyAuthorStyles does that without much hassle.
@ericbidelman I think we might want some kind of similar feature eventually, but the current version of it does surprising things like applying all styles from all ancestor ShadowRoots down into you which is harmful to the concept of encapsulation and also breaks composition. ex. Document (includes bootstrap.css) | | <app-panel> | | --> ShadowRoot | | <style> span { font-size: 2em; } </style> | | <bootstrap-button> with applyAuthorStyles = true. | | --> ShadowRoot | | <span><content></content></span> In this example the <bootstrap-button> has applyAuthorStyles since it assumes that you'll just put the bootstrap CSS at the top of your page. Unfortunately setting that flag also makes the CSS of the containing ShadowRoot apply making the text inside the button huge. This is not what the developer intended, they just wanted bigger text for the spans inside the <app-panel>. ^ and ^^ are explicit about what they match and give the author of the component control while applyAuthorStyles requires the author to worry about the internal structure of every nested 3rd party component just in case one of them uses applyAuthorStyles. Having this flag is harmful to the ecosystem, it encourages brittle wrappers around existing libraries that won't work with each other.
Removed in: https://github.com/w3c/webcomponents/commit/1247b331af83461853e023f89792d378ed682a03