blockly > blockRendering > ConstantProvider > injectCSS_
blockRendering.ConstantProvider.injectCSS_() method
Inject renderer specific CSS into the page.
Signature:
protected injectCSS_(root: Document | ShadowRoot, selector: string): void;
Parameters
Parameter | Type | Description |
|---|---|---|
root | Document | ShadowRoot | The document root to inject the CSS into. |
selector | string | The CSS selector to interpolate into the stylesheet. |
Returns:
void