Re: [whatwg] picture redux

2013-11-21 Thread Simon Pieters
On Wed, 20 Nov 2013 22:27:52 +0100, Tab Atkins Jr. jackalm...@gmail.com wrote: We don't need to actually limit the MQs which are allowed in picture. The preloader is just an optimization in the first place; we *want* the image to be preloaded, but if it isn't, the image will still work, just

[whatwg] picture redux

2013-11-20 Thread Tab Atkins Jr.
Simon Pieters wrote up Kornel's earlier approach to a saner, more palatable source selection algorithm for picture (rather than copying video/audio). This approach also has a new wrinkle: picture *requires* an img child, and it's the img that still actually displays the image. The picture

Re: [whatwg] picture redux

2013-11-20 Thread Timothy Hatcher
It does look good to me, though I can't evaluate it from an implementation perspective. I'll defer to others on that. Requiring the img also also forces backwards comparability for clients that don't support picture. (As long as the author gives it a fallback src attribute.) One part isn't

Re: [whatwg] picture redux

2013-11-20 Thread Tab Atkins Jr.
On Wed, Nov 20, 2013 at 10:31 AM, Timothy Hatcher timo...@apple.com wrote: It does look good to me, though I can't evaluate it from an implementation perspective. I'll defer to others on that. Requiring the img also also forces backwards comparability for clients that don't support picture.

Re: [whatwg] picture redux

2013-11-20 Thread Timothy Hatcher
On Nov 20, 2013, at 10:42 AM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Wed, Nov 20, 2013 at 10:31 AM, Timothy Hatcher timo...@apple.com wrote: It does look good to me, though I can't evaluate it from an implementation perspective. I'll defer to others on that. Requiring the img

Re: [whatwg] picture redux

2013-11-20 Thread Tab Atkins Jr.
On Wed, Nov 20, 2013 at 10:57 AM, Timothy Hatcher timo...@apple.com wrote: On Nov 20, 2013, at 10:42 AM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Wed, Nov 20, 2013 at 10:31 AM, Timothy Hatcher timo...@apple.com wrote: It does look good to me, though I can't evaluate it from an

Re: [whatwg] picture redux

2013-11-20 Thread Tab Atkins Jr.
On Wed, Nov 20, 2013 at 9:25 AM, Tab Atkins Jr. jackalm...@gmail.com wrote: Simon Pieters wrote up Kornel's earlier approach to a saner, more palatable source selection algorithm for picture (rather than copying video/audio). This approach also has a new wrinkle: picture *requires* an img

Re: [whatwg] picture redux

2013-11-20 Thread Tab Atkins Jr.
On Wed, Nov 20, 2013 at 9:25 AM, Tab Atkins Jr. jackalm...@gmail.com wrote: Simon Pieters wrote up Kornel's earlier approach to a saner, more palatable source selection algorithm for picture (rather than copying video/audio). This approach also has a new wrinkle: picture *requires* an img

Re: [whatwg] picture redux

2013-11-20 Thread Markus Ernst
Am 20.11.2013 22:27 schrieb Tab Atkins Jr.: On Wed, Nov 20, 2013 at 9:25 AM, Tab Atkins Jr. jackalm...@gmail.com wrote: Simon Pieters wrote up Kornel's earlier approach to a saner, more palatable source selection algorithm for picture (rather than copying video/audio). This approach also has a

Re: [whatwg] picture redux

2013-11-20 Thread Tab Atkins Jr.
On Wed, Nov 20, 2013 at 2:21 PM, Markus Ernst derer...@gmx.ch wrote: I am still very much concerned about centralizing MQs, and - without knowledge about the preload scanner - I just wondered whether centralization could be beneficial for the preload scanner, too. If we had some kind of CSS

Re: [whatwg] picture redux

2013-11-20 Thread Markus Ernst
Something that just came to my mind: Unlike srcset and src-N, picture has the power to support MQs beyond viewport width: 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

Re: [whatwg] picture redux

2013-11-20 Thread Timothy Hatcher
On Nov 20, 2013, at 2:37 PM, Markus Ernst derer...@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: picture source media=screen src=... source media=print src=... img src=... /picture The UA

Re: [whatwg] picture redux

2013-11-20 Thread Tab Atkins Jr.
On Wed, Nov 20, 2013 at 2:37 PM, Markus Ernst derer...@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

Re: [whatwg] picture redux

2013-11-20 Thread Tab Atkins Jr.
On Wed, Nov 20, 2013 at 3:11 PM, Timothy Hatcher timo...@apple.com wrote: On Nov 20, 2013, at 2:37 PM, Markus Ernst derer...@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: picture source media=screen

Re: [whatwg] picture redux

2013-11-20 Thread Timothy Hatcher
On Nov 20, 2013, at 3:22 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Wed, Nov 20, 2013 at 3:11 PM, Timothy Hatcher timo...@apple.com wrote: On Nov 20, 2013, at 2:37 PM, Markus Ernst derer...@gmx.ch wrote: Something that just came to my mind: Unlike srcset and src-N, picture has the

Re: [whatwg] picture redux

2013-11-20 Thread Shane Hudson
On Wed, Nov 20, 2013 at 11:19 PM, Tab Atkins Jr. jackalm...@gmail.comwrote: 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

Re: [whatwg] picture redux

2013-11-20 Thread Tab Atkins Jr.
On Wed, Nov 20, 2013 at 4:12 PM, Shane Hudson m...@shanehudson.net wrote: On Wed, Nov 20, 2013 at 11:19 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: 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,

Re: [whatwg] picture redux

2013-11-20 Thread Kornel Lesiński
On Wed, 20 Nov 2013 17:25:07 -, Tab Atkins Jr. jackalm...@gmail.com wrote: Simon Pieters wrote up Kornel's earlier approach to a saner, more palatable source selection algorithm for picture (rather than copying video/audio). This approach also has a new wrinkle: picture *requires* an img

Re: [whatwg] picture redux

2013-11-20 Thread Timothy Hatcher
On Nov 20, 2013, at 7:06 PM, Kornel Lesiński kor...@geekhood.net wrote: On Wed, 20 Nov 2013 17:25:07 -, Tab Atkins Jr. jackalm...@gmail.com wrote: Simon Pieters wrote up Kornel's earlier approach to a saner, more palatable source selection algorithm for picture (rather than copying