1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

LibWeb: Implement the :volume-locked pseudo-class

This commit is contained in:
Sam Atkins 2023-08-01 15:00:03 +01:00 committed by Tim Flynn
parent c8a51f232d
commit eb7cda1172
Notes: sideshowbarker 2024-07-16 16:34:22 +09:00
5 changed files with 14 additions and 0 deletions

View file

@ -401,6 +401,11 @@ static inline bool matches_pseudo_class(CSS::Selector::SimpleSelector::PseudoCla
auto const& media_element = static_cast<HTML::HTMLMediaElement const&>(element);
return media_element.muted();
}
case CSS::Selector::SimpleSelector::PseudoClass::Type::VolumeLocked: {
// FIXME: Currently we don't allow the user to specify an override volume, so this is always false.
// Once we do, implement this!
return false;
}
}
return false;