Skip to content

[Gecko Bug 1707584] part1 : implement :playing and :paused pseudo classes.#57633

Merged
foolip merged 2 commits intomasterfrom
gecko/1707584-1
Feb 12, 2026
Merged

[Gecko Bug 1707584] part1 : implement :playing and :paused pseudo classes.#57633
foolip merged 2 commits intomasterfrom
gecko/1707584-1

Conversation

@moz-wptsync-bot
Copy link
Copy Markdown
Collaborator

This implements :playing [1] and :paused [2] pseudeo classes for media element.

[1] https://html.spec.whatwg.org/multipage/semantics-other.html#selector-playing
[2] https://html.spec.whatwg.org/multipage/semantics-other.html#selector-paused

Differential Revision: https://phabricator.services.mozilla.com/D281037

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1707584
gecko-commit: 686e360ad67ebbd1bb805a5136ddb3935eae3262
gecko-reviewers: media-playback-reviewers, firefox-style-system-reviewers, emilio, chunmin

This implements :playing [1] and :paused [2] pseudeo classes for media element.

[1] https://html.spec.whatwg.org/multipage/semantics-other.html#selector-playing
[2] https://html.spec.whatwg.org/multipage/semantics-other.html#selector-paused

Differential Revision: https://phabricator.services.mozilla.com/D281037

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1707584
gecko-commit: 686e360ad67ebbd1bb805a5136ddb3935eae3262
gecko-reviewers: media-playback-reviewers, firefox-style-system-reviewers, emilio, chunmin
Per spec [1], :seeking should be set once `seeking attribute is true`, so the state
needs to be setup in HTMLMediaElement::Seek() immediatley, so that the script can
see the state applied right after updating the media's current time.

[1] https://html.spec.whatwg.org/multipage/semantics-other.html#selector-seeking

Differential Revision: https://phabricator.services.mozilla.com/D281038

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1707584
gecko-commit: 967e757e6850ab0f6285f28b181e21f515c36fd6
gecko-reviewers: media-playback-reviewers, firefox-style-system-reviewers, emilio, chunmin
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

@foolip foolip merged commit 7b054db into master Feb 12, 2026
25 checks passed
@foolip foolip deleted the gecko/1707584-1 branch February 12, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants