1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:28:11 +00:00

LibWeb: Implement the :playing and :paused pseudo-classes

These match media elements (`<video>` and `<audio>`) which are playing
or paused, respectively.
This commit is contained in:
Sam Atkins 2023-08-01 12:31:41 +01:00 committed by Tim Flynn
parent a336fe4fc4
commit 4df5e24926
6 changed files with 34 additions and 1 deletions

View file

@ -1591,6 +1591,7 @@ void HTMLMediaElement::set_paused(bool paused)
if (auto* layout_node = this->layout_node())
layout_node->set_needs_display();
set_needs_style_update(true);
}
// https://html.spec.whatwg.org/multipage/media.html#blocked-media-element