On Fri, Nov 8, 2013 at 12:50 AM, Timothy Hatcher <timo...@apple.com> wrote:
> On Nov 7, 2013, at 2:43 PM, Tab Atkins Jr. <jackalm...@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.
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev