<?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>25890</bug_id>
          
          <creation_ts>2014-05-27 06:46:12 +0000</creation_ts>
          <short_desc>&lt;img&gt; Environment change case aborts if a load is in progress</short_desc>
          <delta_ts>2015-09-16 12:44:12 +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/#img-determine-type</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="Simon Pieters">zcorpan</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106820</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-05-27 06:46:12 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/edits.html
Multipage: http://www.whatwg.org/C#img-determine-type
Complete: http://www.whatwg.org/c#img-determine-type
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
&lt;img&gt; Environment change case aborts if a load is in progress
Step 2 says
&quot;⌛ If the img element ... is not in the completely available state, ... or
if its update the image data algorithm is running, then abort this algorithm.&quot;

Do we want that? Should the UA run the algorithm again when the pending load
has completed? Since &lt;img src&gt; is able to load two resources at the same time,
possibly we should be doing that here also so that the new image gets
downloaded sooner.

Posted from: 90.230.218.37 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.86 Safari/537.36 OPR/22.0.1471.16 (Edition Next)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106953</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-28 22:20:25 +0000</bug_when>
    <thetext>The idea is to avoid thrashing, e.g. if you have a size for 100px, 200px, 300px, 400px, and 500px, and the user is wiggling the window width around, it&apos;s better to actually get one of them down and render it than it is to keep canceling a load and switching to another and then switching back and so on and never actually getting a complete image.

But yeah, this could be updated to use the parallel loading stuff.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113179</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-10-15 08:40:59 +0000</bug_when>
    <thetext>https://github.com/ResponsiveImagesCG/picture-element/commit/c798686911c2bf9334899ac44e0e4a11fa000b19</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>