Skip to content

fix: backport media resolver state helper to v2 - #219

Merged
dperini merged 1 commit into
masterfrom
fix/media-pseudo-classes
Sep 22, 2026
Merged

dperini merged 1 commit into
masterfrom
fix/media-pseudo-classes

Conversation

@jdalton

@jdalton jdalton commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Backport the missing media resolver helper to the maintained v2 source on master. Generated resolvers now receive isPlaying, and the helper reads HTMLMediaElement from the configured DOM window. This restores :playing, :paused, and :seeking matching without changing the v2 architecture.

The 3.0 prerelease branch already uses its separate isMediaState implementation, so this PR intentionally targets only the v2 maintenance line.

Closes #218.

Tests

  • npm test
  • npm run lint (blocked because eslint is not declared or installed in this checkout)

Written by an agent (Codex, GPT-5).

@jdalton jdalton changed the title fix: support media state pseudo-classes fix: backport media resolver state helper to v2 Sep 22, 2026
@dperini
dperini merged commit 7df538e into master Sep 22, 2026
2 checks passed
@jdalton
jdalton deleted the fix/media-pseudo-classes branch September 22, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Media pseudo-classes are not working.

2 participants