[csswg-drafts] [selectors-4] Clarify that :picture-in-picture applies to element in opener window (#13720)

SebastianZ has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors-4] Clarify that :picture-in-picture applies to element in opener window ==
The definition of the `:picture-in-picture` pseudo-class is vague about whether it matches the in-page (placeholder) element or the one shown within the picture-in-picture window.

Given existing implementations, it is obviously meant to match the element in the opener viewport, so it is possible to style the element as a placeholder.

Though the current spec text at least caused [confusion for the implementors in Gecko](https://bugzilla.mozilla.org/show_bug.cgi?id=1463402#c41).

Sebastian

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13720 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 25 March 2026 11:34:34 UTC