mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
LibWeb: Implement the :buffering
and :stalled
pseudo-classes
Currently, HTMLMediaElement doesn't implement the stall timeout, so `:stalled` always returns false.
This commit is contained in:
parent
eb7cda1172
commit
f6e4caf197
7 changed files with 42 additions and 2 deletions
|
@ -236,6 +236,8 @@ ErrorOr<String> Selector::SimpleSelector::serialize() const
|
|||
case Selector::SimpleSelector::PseudoClass::Type::Seeking:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Muted:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::VolumeLocked:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Buffering:
|
||||
case Selector::SimpleSelector::PseudoClass::Type::Stalled:
|
||||
// If the pseudo-class does not accept arguments append ":" (U+003A), followed by the name of the pseudo-class, to s.
|
||||
TRY(s.try_append(':'));
|
||||
TRY(s.try_append(pseudo_class_name(pseudo_class.type)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue