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).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
css |
string |
scope |
string |
Returns
Section titled “Returns”string[]