[webkit-dev] The SrcN responsive images proposal
noam at webkit.org
Thu Nov 7 22:36:07 PST 2013
On Fri, Nov 8, 2013 at 12:50 AM, Timothy Hatcher <timothy at apple.com> wrote:
> On Nov 7, 2013, at 2:43 PM, Tab Atkins Jr. <jackalmage at gmail.com> wrote:
> I'm pretty sure the argument is almost entirely around hand-authoring,
> where experience with style='' shows that lists-of-lists are bad.
> Until you are dealing with dozens of images per tag. That is untenable one
> image heavy sites and tools will need to be written to auto generate these
> "lists of lists" from the original assets. Scripts can easily deal with a
> micro format in one attribute. They can't easily deal with a micro format
> spread across multiple src-n attributes in arbitrary HTML.\
If we start from the one-attribute approach, we can improve the situation
in a simiilar manner to how style is attached to an element.
<img srcset="ref(#foobar)" />
<img src="srcset(foobar)" />
We can even do this kind of thing after the basic <img
srcset="all-kinds-of-stuff" /> is supported, solving the feature problem
first and the authoring convenience problem second.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev