Skip to content

scopeCss

function scopeCss(css, scope): Promise<string>;

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

Prefix every rule in css with scope (a class, e.g. ".xtandard-flags"), re-homing :root/html/:host/body onto the wrapper and leaving keyframe steps alone. Pure.

Parameter Type
css string
scope string

Promise<string>