Contact emails
fbea...@chromium.org, mlam...@chromium.org
Explainer
https://github.com/WICG/picture-in-picture/pull/120
Spec
Specification: https://wicg.github.io/picture-in-picture/#css-pseudo-class
Summary
A CSS pseudo-class is added to help web developers customize media player when video enter and leave Picture-in-Picture.
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
This feature will be supported on all platforms that currently support the Picture-in-Picture API.
Risks
Interoperability and Compatibility
This feature is an addition to the existing Picture-in-Picture API that has only shipped in Google Chrome yet. If this feature would not be adopted (even though it’s part of the spec) web developers could still listen to the video JavaScript events “enterpictureinpicture” and “leavepictureinpicture” to be notified when a video element enters and leaves Picture-in-Picture.
Note that the Fullscreen API already has support for a CSS pseudo class as well.
Edge: Public support
Firefox: No signals
Safari: No signals
Web developers: Positive
Ergonomics
N/A
Activation
This feature will be covered by developer documentation at https://developers.google.com/web/updates.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
Yes. They will be added to https://wpt.fyi/results/picture-in-picture
Link to entry on the feature dashboard
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/1865abec-5cc7-164f-3e09-dc01eef4cacf%40mozilla.com.
On 28/03/2019 15:22, Emilio Cobos Álvarez wrote:
> On 28/03/2019 03:48, Hayato Ito wrote:
>> Hi Emilio,
>>
>> That's a good question. I think these :pseudo-class should work for both
>> open and closed shadow roots because we'd prefer consistent behavior
>> between custom elements (which has a closed shadow tree) and built-in
>> elements.
>>
>> For example, :focus should work for <video> elements or any other
>> focusable built-in elements in Blink, even though, in technically, the
>> most *deepest* focused element is an element in a closed shadow tree
>> which a built-in element hosts.
>> We'd prefer consistent behavior as much as possible so that we can
>> explain the platform by custom elements + (closed) shadow trees.
>>
>> I know some people might claim that "this is a violation of
>> encapsulation", however, given that no one has such a claim for built-in
>> elements, I think this behavior makes sense.
>
> Is there an HTML spec issue for such proposal for :focus? Is this really
> an issue for :focus given we have :focus-within, which works on the flat
> tree?
>
> I don't think such behavior makes sense for :fullscreen (nor for
> :picture-in-picture). For example, the fullscreen spec defines an
> user-agent stylesheet[1] that would break the layout of any shadow host
> containing the fullscreen element if such a thing was implemented. I
> don't think that's desirable nor makes much sense.
>
> Also, it doesn't seem to make much sense to me to match :fullscreen for
> some shadow host that has arbitrary content apart of the fullscreen
> element, but maybe I could be convinced otherwise?
>
> In any case this looks like a maybe broader issue that should probably
> be discussed in the HTML or CSS specs.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/eae4ba93-164a-e39e-69ca-681488fef4b7%40mozilla.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/a3c6c4fb-31d9-4d45-be45-c4bb342750a7%40chromium.org.
I don't think such behavior makes sense for :fullscreen (nor for
:picture-in-picture). For example, the fullscreen spec defines an
user-agent stylesheet[1] that would break the layout of any shadow host
containing the fullscreen element if such a thing was implemented. I
don't think that's desirable nor makes much sense.
Also, it doesn't seem to make much sense to me to match :fullscreen for
some shadow host that has arbitrary content apart of the fullscreen
element, but maybe I could be convinced otherwise?
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeTK2gYAXEZT88CO%3DOxjYrSL%2B92WSL8GspQ-QvQ_8pqV3A%40mail.gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "blink-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/blink-dev/X-qPSmdSR_g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw9fZ6VVwhoiNAkgwWP6w3-xOQzy1HEL2G5HhNRBuSvu_g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAEZxfGMtq8HpBjFjdkGVCt5e_Kb33O1-UzPpEjxULDkSD4LNkg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CA%2B-LeH9YJn3wwJTF7QcjgHp7Ntsn-ZnwksN-%3DotQN4HNknwTXA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw9ObSVmjePAO5JMUJQRCzi00VoHLCf%3DfvLwJdjYHKNyVw%40mail.gmail.com.
LGTM3/DanielOn Fri, 26 Apr 2019 20:57:25 +0200, Yoav Weiss <yo...@yoav.ws> wrote:LGTM2On Fri, Apr 26, 2019 at 8:37 PM Chris Harrelson <chri...@chromium.org> wrote:Great!LGTM1Would be good to also have a WPT test exercising the absence of retargeting, if there isn't already.
To unsubscribe from this group and stop receiving emails from it, send an email to blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACuPfeTK2gYAXEZT88CO%3DOxjYrSL%2B92WSL8GspQ-QvQ_8pqV3A%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "blink-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/blink-dev/X-qPSmdSR_g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw9fZ6VVwhoiNAkgwWP6w3-xOQzy1HEL2G5HhNRBuSvu_g%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAEZxfGMtq8HpBjFjdkGVCt5e_Kb33O1-UzPpEjxULDkSD4LNkg%40mail.gmail.com.
--/* Opera Software, Linköping, Sweden: CET (UTC+1) */
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CA%2B-LeH9YJn3wwJTF7QcjgHp7Ntsn-ZnwksN-%3DotQN4HNknwTXA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw9ObSVmjePAO5JMUJQRCzi00VoHLCf%3DfvLwJdjYHKNyVw%40mail.gmail.com.
Thank you. See answer inline.
On Friday, April 26, 2019 at 10:25:10 PM UTC+2, Daniel Bratell wrote:LGTM3/DanielOn Fri, 26 Apr 2019 20:57:25 +0200, Yoav Weiss <yo...@yoav.ws> wrote:LGTM2On Fri, Apr 26, 2019 at 8:37 PM Chris Harrelson <chri...@chromium.org> wrote:Great!LGTM1Would be good to also have a WPT test exercising the absence of retargeting, if there isn't already.I've added one.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/012f8b0f-0844-4339-b84a-3853f76064f4%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/afbe6975-b438-470c-890a-b05219c127bcn%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfUYJ%2BbcoRcR5EovQ%3Dy4iDseNGaKtPpbN-8MVouTZ%3DanGw%40mail.gmail.com.
LGTM2, for the same reason.That said, there are a number of open bugs against the repository. Have you done any triage against them to see whether any might be compatibility issues in the future?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPpwU5K5m%3DKS-FeYh9q2N2V0fX7EqTgP2Bg%2B7F-H2t3R-Lgd%3DA%40mail.gmail.com.