Type Alias Parse
baseHref?: string;
excludeSelectorParts?: Iterable<RegExp>;
includeCSSLayers?: Iterable<RegExp>;
includeSelectorPartSet?: Set<string>;
mediaQuery?: boolean;
urlRewrite?: boolean;
}
Type declaration
Optional
baseHref?: stringThis value is used as the base
HREF
and is used as a fallback origin for any stylesheet that lacks a definedCSSStyleSheet.href
(IE inline or synthetic stylesheets). You may provide it when processing inline stylesheets when URL rewriting is necessary.Optional
excludeSelectorParts?: Iterable<RegExp>A list of RegExp instance used to exclude CSS selector parts from parsed stylesheet data.
Optional
includeCSSLayers?: Iterable<RegExp>A list of RegExp instance used to specifically include in parsing for specific allowed CSS layers if present in the stylesheet.
Optional
includeSelectorPartSet?: Set<string>A Set of strings to exactly match selector parts to include in parsed stylesheet data.
Optional
mediaQuery?: booleanWhen false, media query /
@media
parsing is disabled.Optional
urlRewrite?: booleanWhen false, relative URL rewriting is disabled. Relative URL rewriting based on the
CSSStyleSheet.href
or providedbaseHref
option is enabled by default.
Optional options for StyleSheetResolve.parse.