mdn / mdn/browser-compat-data

html.elements.video - did Safari drop support for disablepictureinpicture?

Open
#24,399 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser:safari data:html
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

What type of issue is this?

Other

What information was incorrect, unhelpful, or incomplete?

It looks like Safari has removed support for the <video disablepictureinpicture> attribute

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?
  • Adding the disablepictureinpicture attribute to a <video> element should remove the UI to enter picture-in-picture mode for a HTML video player
Did you test this? If so, how?

Using the HTML demo on the MDN documentation page: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

Here are the steps I used in the video. This was with Safari Version 17.6 (18618.3.11.11.6, 18618)

  1. Show that PiP is enabled by default
  2. Remove controls attr to confirm that the <video> element is recreated accurately when input changes
  3. Add disablepictureinpicture attribute
  4. Show that PiP is not disabled

https://github.com/user-attachments/assets/d25eb70b-a89d-4f11-9429-6c9de55cc6d3

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

This video shows the same steps working as expected in Chrome Version 128.0.6613.120

https://github.com/user-attachments/assets/e9d0bf36-8bfd-4c46-82c8-0d6519271ce8

One more thing of interest

This is an edge case but it might be worth noting that it is possible to disable picture-in-picture video globally inside a WKWebView in iOS using the WKWebViewConfiguration. allowsPictureInPictureMediaPlayback property

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

MDN metadata
MDN page report details
  • Query: html.elements.video
  • Report started: 2024-09-09T19:22:05.339Z

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the MDN HTML video page and the browser-compat-data query html.elements.video, then verify the reported behavior against Safari 17.6 and current Safari support information. Done means determining whether disablepictureinpicture is supported as documented and updating the compatibility data if the report is confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.