Donner 0.5.1
Embeddable browser-grade SVG2 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.

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: