Skip to content

findUnscopedLeaks

function findUnscopedLeaks(css, scope): string[];

Defined in: src/build/scope-css.ts:73

Rules that would restyle the host document if they escaped the scope: preflight resets, the universal custom-property rule, and token blocks left on :root/html/body. Returns the offending rule fragments (empty when fully scoped).

Parameter Type
css string
scope string

string[]