Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-introduction of Media Queries (and srcset/sizes) in Source Elements #190

Closed
jernoble opened this issue May 21, 2023 · 2 comments
Closed
Assignees
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

Comments

@jernoble
Copy link

jernoble commented May 21, 2023

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 the media= attribute. Currently, the resource selection algorithm makes no mention of the media= attribute, and the specification of the source element explicitly forbids the use of srcset, sizes, and media attributes when the source'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 for srcset and sizes.

@jernoble jernoble self-assigned this May 21, 2023
@jernoble jernoble added topic: media Spec relates to audio, video, or other timed media venue: WHATWG HTML Workstream from: other Proposed, edited, or co-edited by an individual or entity that doesn't have a more specific label. labels May 21, 2023
@jernoble
Copy link
Author

Implementer hat on, I would argue WebKit should support this proposed re-introduction. We never removed support for media queries, but as the only implementor and with that implementation existing outside the specification, most authors resort to javascript for the same functionality.

@hober
Copy link
Member

hober commented May 22, 2023

Given @jernoble's remarks, I plan to mark this as position: support in a week unless this discussion takes an unforeseen turn.

@hober hober added this to the 2023 Week 22 milestone May 22, 2023
@nt1m nt1m added from: Apple Proposed, edited, or co-edited by Apple. and removed from: other Proposed, edited, or co-edited by an individual or entity that doesn't have a more specific label. labels Jul 4, 2023
@nt1m nt1m closed this as completed Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Development

No branches or pull requests

3 participants