mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:18:11 +00:00
LibWeb: Implement the :volume-locked
pseudo-class
This commit is contained in:
parent
c8a51f232d
commit
eb7cda1172
5 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue