<?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>11991</bug_id>
          
          <creation_ts>2011-02-06 13:09:37 +0000</creation_ts>
          <short_desc>Document should state that percentage heights and widths are not valid</short_desc>
          <delta_ts>2011-03-30 18:30:58 +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>HTML5 differences from HTML4</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nicholas Stimpson">nicholas.stimpson</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>annevk</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mike</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>45158</commentid>
    <comment_count>0</comment_count>
    <who name="Nicholas Stimpson">nicholas.stimpson</who>
    <bug_when>2011-02-06 13:09:37 +0000</bug_when>
    <thetext>HTML 4 allowed height and width attribute values for img, iframe and object to be in percentages. HTML5 only allows these values to be in CSS pixels. The differences document should mention this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45159</commentid>
    <comment_count>1</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2011-02-06 13:21:49 +0000</bug_when>
    <thetext>Could you elaborate why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45161</commentid>
    <comment_count>2</comment_count>
    <who name="Nicholas Stimpson">nicholas.stimpson</who>
    <bug_when>2011-02-06 21:20:01 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Could you elaborate why?

Why the HTML4/HTML5 differences document should document a difference between HTML4 and HTML5? I&apos;m not sure how to answer that.

There was a question on StackOverflow - http://stackoverflow.com/questions/4911085/why-does-the-w3c-validator-show-error-messages-for-these-img-attributes 

Looking at the relevant W3Schools page ( http://www.w3schools.com/html5/tag_img.asp ) which, despite it&apos;s many errors, is still widely referred to by web authors, they had failed to pick up the change, and state that percentages are still allowed in HTML5. 

It would seem helpful to web authors and tutorial writers alike to point the change out in the differences document, to reduce the number of errors of this kind.

Does that help?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45162</commentid>
    <comment_count>3</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2011-02-06 21:28:05 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Could you elaborate why?
&gt; 
&gt; Why the HTML4/HTML5 differences document should document a difference between
&gt; HTML4 and HTML5? I&apos;m not sure how to answer that.

I misread the bug. You are right that the differences document should mention this.

That being said: why are percent values disallowed? (can somebody shed some light on this?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47063</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-03-30 18:30:58 +0000</bug_when>
    <thetext>Percentages are not allowed because they would be presentational. width/height are intended to have a placeholder of the right size while the image is loading so that the text doesn&apos;t move around.

EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, 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

Status: Accepted
Change Description: added &quot;The width and height attributes on img and other elements are no longer allowed to contain percentages.&quot;
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>