Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::css::parser::StylesheetParser Class Reference

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.

Detailed Description

Parse a CSS stylesheet into a list of selectors and their associated declarations.

Member Function Documentation

◆ Parse()

Stylesheet donner::css::parser::StylesheetParser::Parse ( std::string_view str,
ParseWarningSink & warningSink )
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.

Parameters
strInput stylesheet string.
warningSinkSink to collect warnings (e.g. invalid selectors).
Returns
Parsed stylesheet.

The documentation for this class was generated from the following file: