<?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>29378</bug_id>
          
          <creation_ts>2016-01-15 07:34:27 +0000</creation_ts>
          <short_desc>width and height attirbute should allow floating point numbers</short_desc>
          <delta_ts>2016-04-21 16:54:15 +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 spec</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>whatwg-resolved</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sa-takagi</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>arronei</cc>
    
    <cc>mike</cc>
    
    <cc>mtanalin</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>zcorpan</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>124598</commentid>
    <comment_count>0</comment_count>
    <who name="">sa-takagi</who>
    <bug_when>2016-01-15 07:34:27 +0000</bug_when>
    <thetext>Currnet HTML specification says that the width and height attributes on img, iframe, embed, object, video and input element are valid non-negative INTEGERS. https://www.w3.org/html/wg/drafts/html/master/semantics.html#attr-dim-width

On the other hand, &apos;width&apos; and &apos;height&apos; CSS property corresponding to them are &lt;number&gt; which allows decimal point. https://www.w3.org/TR/CSS2/visudet.html#the-width-property

I noticed it, when checking the HTML5 elements in SVG subtrees chapter of the SVG2 draft. It will cause confusion, since width and height attribute of SVG&apos;s graphics elements allows decimal point. https://svgwg.org/svg2-draft/embedded.html#HTMLElements

Furthermore, I have noticed that webkit and blink handles the width and height attribute of html as decimal point values. 
See this test: http://svg2.mbsrv.net/devinfo/devstd/embedWH/

Please take into consideration that width and height of html attribute allow decimal point values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124599</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-01-15 12:14:16 +0000</bug_when>
    <thetext>Would you like to also file an issue about this at https://github.com/whatwg/html/issues ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124621</commentid>
    <comment_count>2</comment_count>
    <who name="">sa-takagi</who>
    <bug_when>2016-01-19 03:35:50 +0000</bug_when>
    <thetext>Posted;
https://github.com/whatwg/html/issues/533

(In reply to Simon Pieters from comment #1)
&gt; Would you like to also file an issue about this at
&gt; https://github.com/whatwg/html/issues ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124624</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2016-01-19 09:02:08 +0000</bug_when>
    <thetext>Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125996</commentid>
    <comment_count>4</comment_count>
    <who name="Arron Eicholz">arronei</who>
    <bug_when>2016-04-21 16:54:15 +0000</bug_when>
    <thetext>HTML5.1 Bugzilla Bug Triage: Fixed

The algorithm for image candidate string now covers floating-point numbers.

...
4. Zero or one of the following:

A width descriptor, consisting of: a space character, a valid non-negative integer giving a number greater than zero representing the width descriptor value, and a U+0077 LATIN SMALL LETTER W character.

A pixel density descriptor, consisting of: a space character, a valid floating-point number giving a number greater than zero representing the pixel density descriptor value, and a U+0078 LATIN SMALL LETTER X character.
...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>