Skip to content

Shadow DOM for child components #753

@nweldev

Description

@nweldev

In "real life", most projects are split into several components. With some frameworks/libraries (like lit-element), or even with VanillaJS, these components usually have a Shadow DOM attached, which could have an impact on rendering performance.

Regarding a possible "VanillaJS Web Components" implementation following common good practices (see #749 (comment)), using a Shadow DOM could also help to enhance rendering performances, as a custom element light dom shouldn't be modified before it's attached to the dom (see the HTML specs).

Yet, the tests seem only to allow a shadow dom for the main-element.

  • Is it already possible to attach a shadow-dom to a "row" component, and if so, how?
  • If not, where could I start to make this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions