Skip to content

Support for adding to specific elements #26

Description

@refi64

Right now, insertionQuery adds the style element directly to document.head, and the event listener is placed directly on the document. This is a problem, though, because it makes it impossible for a web component to use insertionQuery on its own shadow DOM!

A "fix" would be to allow a custom root element to be specified (since you can put style tags in the body) instead.

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