mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
LibWeb: Implement CSS::Parse::parse_nth_child_pattern()
This is a modified copy of the code from Selector.cpp, to work on a TokenStream instead of a String.
This commit is contained in:
parent
cf333574ac
commit
9cfbc07c24
2 changed files with 105 additions and 3 deletions
|
@ -112,6 +112,8 @@ public:
|
|||
template<typename T>
|
||||
Optional<Selector> parse_single_selector(TokenStream<T>&, bool is_relative = false);
|
||||
|
||||
Optional<Selector::SimpleSelector::NthChildPattern> parse_nth_child_pattern(TokenStream<StyleComponentValueRule>&);
|
||||
|
||||
// FIXME: https://www.w3.org/TR/selectors-4/
|
||||
// Contrary to the name, these parse a comma-separated list of selectors, according to the spec.
|
||||
Vector<Selector> parse_a_selector();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue