|
|
Donner
C++20 SVG rendering library
|
Result of matches, returns if the selector matched and if it can be treated as a "primary" matcher. More...
#include "donner/css/selectors/PseudoClassSelector.h"
Public Member Functions | |
| PseudoMatchResult (bool matches, bool isPrimary=true) | |
| Constructor, implicit from a bool. | |
Public Attributes | |
| bool | matches = false |
| True if the selector matched. | |
| bool | isPrimary = true |
| True if the selector is a primary matcher. | |
Result of matches, returns if the selector matched and if it can be treated as a "primary" matcher.
Every matcher except :scope is primary, and can match an element directly. :scope can only be used to find another element in the tree: :scope > div is valid and matches a div, but :scope itself cannot match an element.