Skip to content

Commit

Permalink
Parse :host selector (#105)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Wülker <[email protected]>
  • Loading branch information
simonwuelker authored Jan 7, 2025
1 parent aab832f commit 7e529e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions style/servo/selector_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,10 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
fn namespace_for_prefix(&self, prefix: &Prefix) -> Option<Namespace> {
self.namespaces.prefixes.get(prefix).cloned()
}

fn parse_host(&self) -> bool {
true
}
}

impl SelectorImpl {
Expand Down

0 comments on commit 7e529e8

Please sign in to comment.