<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17061</bug_id>
          
          <creation_ts>2012-05-15 13:02:13 +0000</creation_ts>
          <short_desc>The use cases of the img@srcset attribute needs to be compared to the &lt;picture&gt;-element</short_desc>
          <delta_ts>2012-11-30 22:41:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-img-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Marcos Caceres">w3c</assigned_to>
          <cc>attiks</cc>
    
    <cc>ian</cc>
    
    <cc>laura.lee.carlson</cc>
    
    <cc>mat</cc>
    
    <cc>mike</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67740</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-05-15 13:02:13 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-1.html
Multipage: http://www.whatwg.org/C#the-img-element
Complete: http://www.whatwg.org/c#the-img-element

Comment:
The srcset attribute is poorly conceived and much inferior to the proposed
&lt;picture&gt;-element.

Posted from: 92.62.32.132
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70795</commentid>
    <comment_count>1</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:30:25 +0000</bug_when>
    <thetext>This bug was cloned to create bug 18164 as part of operation convergence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71224</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-07-20 03:52:23 +0000</bug_when>
    <thetext>Could you elaborate on how it is inferior?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73965</commentid>
    <comment_count>3</comment_count>
    <who name="Mat Marquis">mat</who>
    <bug_when>2012-09-15 19:05:22 +0000</bug_when>
    <thetext>I’m seeing a number of bugs like this one appear in the tracker. While I don’t think they’re especially helpful in and of themselves: since the question was raised, I’m happy to respond.

As things stand today, the extended `srcset` syntax covers only a fraction of the use cases covered by the `picture`/`srcset` markup proposed here:
http://dvcs.w3.org/hg/html-proposals/raw-file/tip/responsive-images/responsive-images.html

This is, of course, to say nothing of the fact that this siloed microsyntax will either require ongoing development in parallel with media queries, or will only ever the use cases that it covers today. In the case of `picture`, the element’s usefulness could continue to expand as media query specification is expanded—for example, the recently-proposed “high contrast mode” media query could be used to serve more context-appropriate images to users browsing by way of assistive technologies. This is something `srcset` cannot provide today, and will likely never provide in the future—unless developed independent of media queries.

In terms of author preference, well, I’ve repeated myself more than enough on that subject and I think the bugs like this that have been appearing here — while I do discourage them — will speak to that. A brief skim through the comments on http://www.w3.org/community/respimg/2012/05/11/respimg-proposal, or even a Google or Twitter search for “responsive images” will prove authors’ sentiment better than anything I could say here.

I have yet to see a provable user benefit cited for the extended `srcset` syntax. It plainly covers less use cases than the `picture` proposal, and has very limited potential for future use cases.

The only arguments I’ve consistently seen in favor of the extended `srcset` syntax is that it’s preferable for implementors, and nebulous promises of author preference. However, to continue insisting that its terseness implies a future author preference, well, I think we can safely discard that argument. In fairness, I’ve actually asked them.

We’re left only with implementor preference for `srcset`, which certainly shouldn’t trump a number of additional use cases, “future friendliness,” and strongly-voiced author preference.

So, all things considered: could you elaborate on how it’s superior?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74328</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-23 22:38:22 +0000</bug_when>
    <thetext>(Please reopen bugs when adding comments, or they run a high risk of being missed.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74714</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-28 03:49:42 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; I’m seeing a number of bugs like this one appear in the tracker.

If you could give their numbers in the &quot;See Also&quot; line (or in a bug comment) that would be really useful.


&gt; As things stand today, the extended `srcset` syntax covers only a fraction of
&gt; the use cases covered by the `picture`/`srcset` markup proposed here:
&gt; http://dvcs.w3.org/hg/html-proposals/raw-file/tip/responsive-images/responsive-images.html

If there are specific use cases that aren&apos;t addressed, please send feedback to the WHATWG list (or file bugs) on those use cases.


&gt; This is, of course, to say nothing of the fact that this siloed microsyntax
&gt; will either require ongoing development in parallel with media queries, or will
&gt; only ever the use cases that it covers today.

That&apos;s not a big deal, adding a new feature to this syntax is easy.


&gt; So, all things considered: could you elaborate on how it’s superior?

These e-mails detail the reasoning behind the current specification text:
   http://lists.w3.org/Archives/Public/public-whatwg-archive/2012May/0247.html
   http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Aug/0070.html
   http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Sep/0064.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75063</commentid>
    <comment_count>6</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2012-10-02 15:23:25 +0000</bug_when>
    <thetext>@hixie, all, we have started collecting the use cases here:

https://github.com/Wilto/draft-prop/blob/master/UseCaseComparisons.md

For cases where img@srcset is &quot;N/A&quot;, we were not able to come up with a sensible solution. 

Can you show us how img@srcset would be used to meet those cases? We can add you on Github and you can edit the use case document directly. 

If you prefer, we can file them as separate bugs here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76010</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-11 16:44:12 +0000</bug_when>
    <thetext>Filing them as separate bugs would be awesome.

Note that use case descriptions need to also have some measure of _why_ the problem exists. For example, rather than just &quot;water needs to be cleaned&quot;, you would say &quot;dirty water leads to disease and health risks, so water needs to be cleaned&quot;. Rather than &quot;assuming three image breakpoints based on maximum widths&quot;, you would say &quot;a single page should work on devices with different widths, and so you may have a page whose layout and images need to change based on the width of the viewport&quot; (which doesn&apos;t say whether they should be maximum or minimum breakpoints; if there&apos;s a reason to prefer one or the other, you&apos;d have to elaborate the use case to explain why only one of the two would solve it).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76011</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-11 16:44:44 +0000</bug_when>
    <thetext>(The key being, a use case / problem description should not assume a solution.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76092</commentid>
    <comment_count>9</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2012-10-12 12:21:07 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; (The key being, a use case / problem description should not assume a
&gt; solution.)

Agree completely. We will do our best to make sure the use cases and requirements remain neutral.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76093</commentid>
    <comment_count>10</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2012-10-12 12:28:34 +0000</bug_when>
    <thetext>FYI, we&apos;ve now made a separate document which is independent of any solution. 

http://responsiveimagescg.github.com/ri-usecases/UseCases.html

Over the next week, we will continue to edit the use casesto make sure they are written correctly and then send them to the HTMLWG for review. If you have some more examples of well-written use cases, please let me know. Or if you see any further deficiencies with the ones in the document, let me know and I can do my best to fix them.

After we are sure the use cases are ok and all requirements are captured. I&apos;ll file them as individual bugs. 

HTH!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76534</commentid>
    <comment_count>11</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-17 23:24:07 +0000</bug_when>
    <thetext>Thanks. I&apos;ve assigned this bug to you for now since there&apos;s nothing for me to do until those bugs are filed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79201</commentid>
    <comment_count>12</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2012-11-30 19:00:07 +0000</bug_when>
    <thetext>Done. Filed: 
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20172
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20173
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20174
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20175
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20176
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20177</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79215</commentid>
    <comment_count>13</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-30 22:09:55 +0000</bug_when>
    <thetext>Those are all filed on the HTMLWG; if you meant for them to be WHATWG bugs let me know and I can move them over.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79217</commentid>
    <comment_count>14</comment_count>
    <who name="Mat Marquis">mat</who>
    <bug_when>2012-11-30 22:16:19 +0000</bug_when>
    <thetext>We’ll be cloning them to the WHATWG tracker shortly.
(Per https://twitter.com/hober/status/273890295605760000 )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79220</commentid>
    <comment_count>15</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-30 22:41:13 +0000</bug_when>
    <thetext>Cool, thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>