Parse a CSS stylesheet into a list of selectors and their associated declarations. More...
#include "donner/css/parser/StylesheetParser.h"
Static Public Member Functions | |
| static Stylesheet | Parse (std::string_view str, ParseWarningSink &warningSink) |
| Parse a CSS stylesheet into a list of selectors and their associated declarations, as well as @font-face rules. | |
Parse a CSS stylesheet into a list of selectors and their associated declarations.
|
static |
Parse a CSS stylesheet into a list of selectors and their associated declarations, as well as @font-face rules.
CSS @import is unsupported. Imports are ignored with a bounded warning at the @ token; import targets are not included in the warning and no resources are requested. A following local rule is parsed after a semicolon-terminated import.
| str | Input stylesheet string. |
| warningSink | Sink to collect warnings (e.g. invalid selectors). |