[whatwg] <picture> redux

Tab Atkins Jr. jackalmage at gmail.com
Wed Nov 20 15:19:09 PST 2013


On Wed, Nov 20, 2013 at 2:37 PM, Markus Ernst <derernst at gmx.ch> wrote:
> Something that just came to my mind: Unlike srcset and src-N, <picture> has
> the power to support MQs beyond viewport width:

I'm not sure where this belief that src-N doesn't support arbitrary
MQs comes from.  The syntax doesn't support media *types* (screen,
print, etc), but media types are being deprecated *anyway*, and we're
designing new media features that replace them.

(Sorry to single you out - Adam Barth was under this impression as
well.  The spec just has this quite explicitly featured, so I'm
confused about it.)

> <picture>
>   <source media="screen" src=...>
>   <source media="print" src=...>
>   <img src=...>
> </picture>
>
> The UA will have to download both sources, or printing will be delayed. Is
> this a problem?

Printing can just be delayed.

~TJ



More information about the whatwg mailing list