mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
stylo: Support :hover and :active quirk
This commit is contained in:
parent
ff17af064b
commit
15fe48f3f6
15 changed files with 229 additions and 73 deletions
|
@ -299,6 +299,12 @@ impl ::selectors::SelectorImpl for SelectorImpl {
|
|||
type NamespaceUrl = Namespace;
|
||||
type BorrowedLocalName = LocalName;
|
||||
type BorrowedNamespaceUrl = Namespace;
|
||||
|
||||
#[inline]
|
||||
fn is_active_or_hover(pseudo_class: &Self::NonTSPseudoClass) -> bool {
|
||||
matches!(*pseudo_class, NonTSPseudoClass::Active |
|
||||
NonTSPseudoClass::Hover)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue