<?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>5856</bug_id>
          
          <creation_ts>2008-07-11 14:18:59 +0000</creation_ts>
          <short_desc>height/width DOM attributes in combination with display:none</short_desc>
          <delta_ts>2010-10-04 14:33:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A...%3Cscript%3E%0A%20var%20i%20%3D%20new%20Image()%3B%0A%20i.onload%20%3D%20function%20()%20%7B%20w(i.width)%3B%20%7D%3B%0A%20i.src%20%3D%20&apos;image&apos;%3B%0A%3C%2Fscript%3E</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NoReply</keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>mike</cc>
    
    <cc>olivier.gendrin</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21152</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2008-07-11 14:18:59 +0000</bug_when>
    <thetext>HTML5 should make it clear that when the image from the &lt;img&gt; element is not rendered the height/width DOM attributes return the intrinsic image height/width and not zero. (A May version of the draft had this backwards and the current version is not clear; probably because the rendering section is not done yet.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21156</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2008-07-11 19:59:19 +0000</bug_when>
    <thetext>Yeah, it should return 0 when there&apos;s no image, and the intrinsic width if the image isn&apos;t rendered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21326</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Gendrin">olivier.gendrin</who>
    <bug_when>2008-07-25 07:56:06 +0000</bug_when>
    <thetext>Ian : what do you call &apos;no image&apos; : an empty source, or an 404 HTTP request ? And is &apos;intrinsic image height/width&apos; overriden by @width and @height img attributes ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21327</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2008-07-25 09:36:04 +0000</bug_when>
    <thetext>Does the text in the spec now answer those questions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21332</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Gendrin">olivier.gendrin</who>
    <bug_when>2008-07-25 12:09:19 +0000</bug_when>
    <thetext>Ian, if you mean http://dev.w3.org/cvsweb/~checkout~/html5/spec/Overview.html?rev=1.1128#dimension0, the last sentence miss the img tag (&quot;The width and height DOM attributes on the embed, object, and video elements must reflect the content attributes of the same name.&quot;).

And if the img is missing, yes, it answers my question, thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21339</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2008-07-25 18:23:02 +0000</bug_when>
    <thetext>Well I don&apos;t only mean that section, I also mean the bits that define HTMLImageElement.height and .width, the height/width content attributes, fetching, and so forth.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21352</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Gendrin">olivier.gendrin</who>
    <bug_when>2008-07-28 10:14:16 +0000</bug_when>
    <thetext>You mean &quot;The DOM attributes width and height must return the rendered width and height of the image, in CSS pixels, if the image is being rendered, and is being rendered to a visual medium; or else the intrinsic with and height of the image, in CSS pixels, if the image is available but not being rendered to a visual medium; or else 0, if the image is not available or its dimensions are not known.&quot; ?

(I think that the last &apos;or&apos;, &quot;if the image is not available or its dimensions are not known.&quot;, should be an &apos;and&apos;.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21359</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2008-07-28 19:42:33 +0000</bug_when>
    <thetext>So what should it return if the image is available but it&apos;s dimensions are not known? (e.g. it has no intrinsic dimensions, like a dynamically sized gradient or infinite pattern)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21362</commentid>
    <comment_count>8</comment_count>
    <who name="Olivier Gendrin">olivier.gendrin</who>
    <bug_when>2008-07-29 08:02:05 +0000</bug_when>
    <thetext>Ok, would never have though to so strange &apos;images&apos;...

Thank you very much.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32979</commentid>
    <comment_count>9</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2010-03-14 13:15:11 +0000</bug_when>
    <thetext>This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>