Style Observer API
    Preparing search index...

    Function adoptCSS

    • Adopt CSS into a document or shadow root.

      Parameters

      • css: string

        The CSS to adopt.

      • Optionaloptions: any = {}

        The options object. If a document or shadow root is provided, it will be used as the root.

      Returns CSSStyleSheet

      The adopted style sheet.