[webkit-dev] The SrcN responsive images proposal
Noam Rosenthal
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.
For example:
<head>
<srcset name="foobar">
some list-of-lists-of-lists-of-lists
</srcset>
</head>
<body>
<img srcset="ref(#foobar)" />
or even
<img src="srcset(foobar)" />
</body>
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...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20131108/5cf7937f/attachment.html>
More information about the webkit-dev
mailing list