mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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:
parent
a336fe4fc4
commit
4df5e24926
Notes:
sideshowbarker
2024-07-17 06:20:50 +09:00
Author: https://github.com/AtkinsSJ
Commit: 4df5e24926
Pull-request: https://github.com/SerenityOS/serenity/pull/20302
Reviewed-by: https://github.com/trflynn89 ✅
6 changed files with 34 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue