// GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into webref // (https://github.com/w3c/webref) // Source: CSS Parser API (https://wicg.github.io/css-parser-api/) typedef (DOMString or ReadableStream) CSSStringSource; typedef (DOMString or CSSStyleValue or CSSParserValue) CSSToken; partial namespace CSS { Promise> parseStylesheet(CSSStringSource css, optional CSSParserOptions options = {}); Promise> parseRuleList(CSSStringSource css, optional CSSParserOptions options = {}); Promise parseRule(CSSStringSource css, optional CSSParserOptions options = {}); Promise> parseDeclarationList(CSSStringSource css, optional CSSParserOptions options = {}); CSSParserDeclaration parseDeclaration(DOMString css, optional CSSParserOptions options = {}); CSSToken parseValue(DOMString css); sequence parseValueList(DOMString css); sequence> parseCommaValueList(DOMString css); }; dictionary CSSParserOptions { object atRules; /* dict of at-rule name => at-rule type (contains decls or contains qualified rules) */ }; [Exposed=Window] interface CSSParserRule { /* Just a superclass. */ }; [Exposed=Window] interface CSSParserAtRule : CSSParserRule { constructor(DOMString name, sequence prelude, optional sequence? body); readonly attribute DOMString name; readonly attribute FrozenArray prelude; readonly attribute FrozenArray? body; /* nullable to handle at-statements */ stringifier; }; [Exposed=Window] interface CSSParserQualifiedRule : CSSParserRule { constructor(sequence prelude, optional sequence? body); readonly attribute FrozenArray prelude; readonly attribute FrozenArray body; stringifier; }; [Exposed=Window] interface CSSParserDeclaration : CSSParserRule { constructor(DOMString name, optional sequence body); readonly attribute DOMString name; readonly attribute FrozenArray body; stringifier; }; [Exposed=Window] interface CSSParserValue { /* Just a superclass. */ }; [Exposed=Window] interface CSSParserBlock : CSSParserValue { constructor(DOMString name, sequence body); readonly attribute DOMString name; /* "[]", "{}", or "()" */ readonly attribute FrozenArray body; stringifier; }; [Exposed=Window] interface CSSParserFunction : CSSParserValue { constructor(DOMString name, sequence> args); readonly attribute DOMString name; readonly attribute FrozenArray> args; stringifier; };