Skip to content

Commit

Permalink
servo: Add support for parsing :is() and :where()
Browse files Browse the repository at this point in the history
Stylo supports these and they just need to be turned on.

Signed-off-by: Martin Robinson <[email protected]>
  • Loading branch information
mrobinson committed Oct 29, 2024
1 parent e3406b4 commit c2f7754
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions style/servo/selector_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,26 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
type Impl = SelectorImpl;
type Error = StyleParseErrorKind<'i>;

#[inline]
fn parse_nth_child_of(&self) -> bool {
false
}

#[inline]
fn parse_is_and_where(&self) -> bool {
true
}

#[inline]
fn parse_has(&self) -> bool {
false
}

#[inline]
fn parse_parent_selector(&self) -> bool {
false
}

fn parse_non_ts_pseudo_class(
&self,
location: SourceLocation,
Expand Down

0 comments on commit c2f7754

Please sign in to comment.