This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

applyAuthorStyles

Summary

Indicates whether the rules in author styles associated with the element’s document apply to the shadow tree. If false (default value), the author styles are not applied to the shadow tree. If true, the author styles are applied.

Property of dom/shadowdom/ShadowRootdom/shadowdom/ShadowRoot

Syntax

var result = element.applyAuthorStyles;
element.applyAuthorStyles = value;

Return Value

Returns an object of type BooleanBoolean

If false (default value), the author styles are not applied to the shadow tree. If true, the author styles are applied.