<?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>5941</bug_id>
          
          <creation_ts>2008-08-07 13:53:45 +0000</creation_ts>
          <short_desc>&lt;video&gt;.width/height should have default values defined</short_desc>
          <delta_ts>2010-10-04 14:49:25 +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>CLOSED</bug_status>
          <resolution>WONTFIX</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="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>mike</cc>
    
    <cc>olivier.gendrin</cc>
    
    <cc>philipj</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>21462</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2008-08-07 13:53:45 +0000</bug_when>
    <thetext>AFAICT the &lt;video&gt;.width/height DOM attributes don&apos;t have default values defines as far as reflecting attributes go, and so getting .width or .height will return 0 when the content attributes aren&apos;t there (or won&apos;t parse). This seems unhelpful.

We think the width/height DOM attributes should return the rendered width/height of the element, if it&apos;s being rendered, or else the intristic width/height of the video element&apos;s playback area.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21463</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Gendrin">olivier.gendrin</who>
    <bug_when>2008-08-07 14:40:34 +0000</bug_when>
    <thetext>For example, width should be 100% of parent width (see CSS) and height 100%*3/4 of parent width.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21499</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2008-08-11 23:32:07 +0000</bug_when>
    <thetext>If you want the video dimensions, use videoWidth and videoHeight. If you want the dimensions of the rendering, use the CSS object model (clientHeight, etc). As a general rule, the DOM attributes don&apos;t return values other than what the content attributes have. There are some exceptions, like Image.height, but I think we want to keep the platform as consistent as possible.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>