Skip to content

API > utils/split-shadow-root-css > splitShadowRootCss

Function: splitShadowRootCss()

splitShadowRootCss(css): object

Given a CSS string that will be loaded into a shadow root, split it into two parts:

  • documentCss: CSS that needs to be applied to the document (like @property)
  • shadowCss: CSS that needs to be applied to the shadow root

Parameters

css: string

Returns

documentCss

documentCss: string

shadowCss

shadowCss: string

Source

packages/wxt/src/utils/split-shadow-root-css.ts:7


Generated using typedoc-plugin-markdown and TypeDoc