Skip to content

Enable Native Shadow DOM (and drop IE Support)? #3561

@lukethacoder

Description

@lukethacoder

Is your feature request related to a problem? Please describe.

Wondering if/when on platform will allow (even via an opt-in checkbox) native shadow DOM. It is much more powerful than @lwc/synthetic-shadow (for obvious reasons - IE support, which as of June 15 2022 is retired and out of support).

Describe the solution you'd like

Looking for some information around native shadow dom coming to on platform (if/when - should I not get my hopes up). More than happy for this to be answered and closed.

The main driver for this is some styling quirks of using on-platform/@lwc/synthetic-shadow and the minor diffs in the API (host vs shadowRoot)

::slotted() being one key feature I'd love to be able to use. It works great without @lwc/synthetic-shadow but flicking it on, I can't seem to find a suitable alternative (bar a global stylesheet, which I'd rather not do given the nature of web components).

Describe alternatives you've considered

  • Global Stylesheets: would rather not given the nature of web components. I should be able to drop the LWC in anywhere across the platform and not have to load in a monolith stylesheet
  • JavaScript inlining via .style.setProperty(): gets the job done, but pollutes the DOM with a heap of inline styles.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    External: Lightning ComponentsCategorizes issue or PR as related to Lightning base components.External: Other SalesforceCategorizes issue or PR as related to Salesforce related features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions