• Put the stylesheet into doc once. Safe to call per widget: the second call leaves a populated sheet untouched. An empty server-rendered sheet is filled in place, preserving its nonce. extra is appended to the shell's rules when filling the sheet; the dialog modules hand theirs in here, so the page still carries one sheet. nonce authorizes the style element under CSP; the host controls its style-attribute policy separately.

    Parameters

    • doc: Document
    • extra: string = ''
    • Optionalnonce: string

    Returns HTMLStyleElement