Repository navigation
Conversation
Safari on iOS only honors the autoplay attribute when the element also has the playsinline attribute, which the attribute description did not mention. Add a note pointing to Apple's documentation. Fixes mdn#44020
KishSiva
force-pushed
the
fix/video-autoplay-playsinline
branch
from
November 1, 2026 00:39
ccb072f to
4ead2a6
Compare
Member
|
Thank you for help! Please note that the original issue recommends applying changes to BCD first, and only then, if necessary, adding a content note. Please follow the suggested steps. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a note to the
autoplayattribute description on the<video>reference page: Safari on iOS only autoplays a video if the element also has theplaysinlineattribute.Motivation
The page explains that videos with sound need
mutedto autoplay, but it does not mention that Safari on iOS also requiresplaysinline. Readers who follow the page get videos that do not autoplay on iPhone.Additional details
Source: Apple's Delivering Video Content for Safari: "Video elements that include
<video autoplay>play automatically when the video loads in Safari on macOS and iOS, only if those elements also include theplaysinlineattribute."Related issues and pull requests
Fixes #44020