1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

LibWeb: Implement the :seeking pseudo-class

This matches while a media element is seeking.
This commit is contained in:
Sam Atkins 2023-08-01 13:04:47 +01:00 committed by Tim Flynn
parent 4df5e24926
commit 7b4ae43b91
7 changed files with 28 additions and 3 deletions

View file

@ -117,6 +117,7 @@ public:
Defined,
Playing,
Paused,
Seeking,
};
Type type;
@ -310,6 +311,8 @@ constexpr StringView pseudo_class_name(Selector::SimpleSelector::PseudoClass::Ty
return "playing"sv;
case Selector::SimpleSelector::PseudoClass::Type::Paused:
return "paused"sv;
case Selector::SimpleSelector::PseudoClass::Type::Seeking:
return "seeking"sv;
}
VERIFY_NOT_REACHED();
}