CSS selector is a chain of SimpleSelectors separated by combinators.
More...
#include <Stylish/Selector.hpp>
CSS selector is a chain of SimpleSelectors separated by combinators.
- See Also
- http://www.w3.org/TR/CSS21/selector.html
| bool Stylish::Selector::operator< |
( |
const Selector & |
s | ) |
const |
Sorts selectors, this is mostly for debugging and deserialization purposes.
The sorting function optimizes for visual appearance, more specifically it tries to mimic the order one would use when writing a CSS file by hand.
- Parameters
-
- Returns
- true if this should precede s
| bool Stylish::Selector::operator== |
( |
const Selector & |
s | ) |
const |
- Parameters
-
- Returns
- true if selector are identical
Inserts ss at the beginning of the selector chain.
- Parameters
-
| ss | new selector to add to the chain |
| c | combinator between ss and the second selector in the chain |
| size_t Stylish::Selector::size |
( |
| ) |
const |
|
inline |
- Returns
- the number of SimpleSelectors in the Selector
Creates a new universal selector.
- See Also
- SimpleSelector::isEmpty()
- Parameters
-
| origin | the origin of the new selector |
- Returns
- universal selector