RE: srcN - Alternative to picture and srcset

>> Maybe it is an option to separate all of them into one src using for example
>> a ";"
>
> I'm already using a semicolon and a comma; I think another level of
> separator would get really confusing. ^_^

Except if you choose a separator whose meaning is well-known. Since we're facing a choice, I think we could use the || operator to separate the options.

#    <img srcset="(max-width: 480px) image.mobile.jpg || all image.desktop.jpg" />

We could even allow the use of braces to improve readability. Though I'm not sure it improves readability. That being said, a semi-colon is not a so bad option either, combined with a double-dot:

#    <img srcset="(max-width: 480px): image.mobile.jpg;  all: image.desktop.jpg" />



Not saying this is the way to go, but I don't like the srcN part of the proposal either. It's not really script friendly either because you can't read or update them all at the same time. 		 	   		  

Received on Friday, 27 September 2013 16:59:48 UTC