Re-introduction of Media Queries (and srcset/sizes) in Source Elements #190
Labels
from: Apple
Proposed, edited, or co-edited by Apple.
position: support
topic: media
Spec relates to audio, video, or other timed media
venue: WHATWG HTML Workstream
Milestone
WebKittens
@jernoble, @ericcarlson, @jyavenard
Title of the spec
HTML Video Element: Proposal For Reintroduction of Media (and srcset/sizes) in Source Elements
URL to the spec
https://html.spec.whatwg.org/
URL to the spec's repository
https://github.com/whatwg/html
Issue Tracker URL
whatwg/html#6363
Explainer URL
https://github.com/filamentgroup/html-video-responsive
TAG Design Review URL
No response
Mozilla standards-positions issue URL
No response
WebKit Bugzilla URL
No response
Radar URL
No response
Description
The GitHub issue above tracks the re-introduction of media queries to
<source>
used by<audio>
and<video>
in the resource selection algorithm for media elements.Media Queries (via the
media=
attribute to<source>
) were previously specified in HTML, but were removed from the spec. Subsequent standardization of the<picture>
element re-used the<source>
element, including themedia=
attribute. Currently, the resource selection algorithm makes no mention of themedia=
attribute, and the specification of thesource
element explicitly forbids the use of srcset, sizes, and media attributes when thesource
's parent is a media element.WebKit never removed support for Media Queries from its implementation of
HTMLMediaElement
. This issue tracks WebKit's public position on the re-inclusion of Media Queries, as well as the addition of support forsrcset
andsizes
.The text was updated successfully, but these errors were encountered: