|
|
Donner
C++20 SVG rendering library
|
A rule in a stylesheet, which consists of a selector and a list of declarations. More...
#include "donner/css/Stylesheet.h"
Public Attributes | |
| Selector | selector |
| Selector for this rule. | |
| std::vector< Declaration > | declarations |
| Declarations for this rule. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const SelectorRule &rule) |
| Output a human-readable representation of the delector to a stream. | |
A rule in a stylesheet, which consists of a selector and a list of declarations.
For example, the following is a valid rule:
The selector is path.withColor, and the declarations are fill: red and stroke: blue.
|
friend |
Output a human-readable representation of the delector to a stream.
| os | Output stream. |
| rule | SelectorRule to output. |