Skip to content

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

Function: splitShadowRootCss() ​

splitShadowRootCss(css): object

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

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 ​

object

documentCss ​

documentCss: string

shadowCss ​

shadowCss: string


Generated using typedoc-plugin-markdown and TypeDoc