|
|
Donner
C++20 SVG rendering library
|
Rules starting with an @ are called At-Rules, and are used to define CSS features such as @media, @font-face, @keyframes, etc. More...
#include "donner/css/Rule.h"
Public Member Functions | |
| AtRule (RcString name) | |
| Construct the AtRule with the given name. | |
| bool | operator== (const AtRule &other) const |
| Equality operator. | |
Public Attributes | |
| RcString | name |
| Name of the at-rule, such as media, font-face, keyframes, etc. | |
| std::vector< ComponentValue > | prelude |
| List of component values before the block definition. | |
| std::optional< SimpleBlock > | block |
| Block for the at-rule's definition, if any. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const AtRule &rule) |
| Output a human-readable parsed representation of AtRule to the given stream. | |
Rules starting with an @ are called At-Rules, and are used to define CSS features such as @media, @font-face, @keyframes, etc.
For example, the following is a valid at-rule:
Note that @charset is a special rule, which does not show up as an AtRule, but it is used to inform the parsing behavior. For example, if the first rule is @charset "utf-8";, then this will not show up in the list of rules, but the parser will be in UTF-8 mode.
|
explicit |
Construct the AtRule with the given name.
| name | Name of the at-rule. |
|
friend |