The bucket one selector-list entry is filed under in a RuleIndex: a simple selector of its subject (rightmost) compound that every element it matches must carry. More...
#include "donner/svg/components/style/RuleIndex.h"
Public Types | |
| enum class | Kind : std::uint8_t { Id , Class , Attribute , Type , Universal } |
| What the key names, in order of preference when a compound has several. More... | |
Public Member Functions | |
| bool | operator== (const RuleIndexKey &) const =default |
| Equality operator. | |
Public Attributes | |
| Kind | kind = Kind::Universal |
| What name names. | |
| RcString | name |
| Key text, lowercased for Kind::Attribute and Kind::Type. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const RuleIndexKey &key) |
| Print the key, for test failure output. | |
The bucket one selector-list entry is filed under in a RuleIndex: a simple selector of its subject (rightmost) compound that every element it matches must carry.
|
strong |
What the key names, in order of preference when a compound has several.
| Enumerator | |
|---|---|
| Id | #name, compared exactly. |
| Class | .name, compared exactly. |
| Attribute | [name] with no namespace, compared as an ASCII-lowercased local name. |
| Type | A type name, compared ASCII-lowercased; a universal type gives no key. |
| Universal | No key: the entry is a candidate for every element. |