Skip to content

CSSStyleSheet

Values

asStyleSheet

let asStyleSheet: WebAPI.DOMAPI.cssStyleSheet => WebAPI.DOMAPI.styleSheet

deleteRule

let deleteRule: (WebAPI.DOMAPI.cssStyleSheet, int) => unit

Parameters

WebAPI.DOMAPI.cssStyleSheet int

Return type

unit

insertRule

let insertRule: (
WebAPI.DOMAPI.cssStyleSheet,
~rule: string,
~index: int=?,
) => int

Parameters

WebAPI.DOMAPI.cssStyleSheet string option< int >

Return type

int

make

let make: (
~options: WebAPI.DOMAPI.cssStyleSheetInit=?,
) => WebAPI.DOMAPI.cssStyleSheet

replace

let replace: (
WebAPI.DOMAPI.cssStyleSheet,
string,
) => Promise.t<WebAPI.DOMAPI.cssStyleSheet>

Parameters

WebAPI.DOMAPI.cssStyleSheet string

Return type

Promise.t< WebAPI.DOMAPI.cssStyleSheet >

replaceSync

let replaceSync: (WebAPI.DOMAPI.cssStyleSheet, string) => unit

Parameters

WebAPI.DOMAPI.cssStyleSheet string

Return type

unit