useLegacyStyleEncapsulation property

bool useLegacyStyleEncapsulation
final

Whether to opt-in to supporting a legacy mode of style encapsulation.

If true, shadow host selectors prevent the following selectors from being scoped to their component much like a shadow piercing combinator. It also allows the use of the following deprecated selectors:

  • ::content
  • ::shadow
  • polyfill-next-selector
  • polyfill-unscoped-rule

Implementation

final bool useLegacyStyleEncapsulation;