Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
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: