HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2493[Gecko] [Opera] [Webkit] Put pixelratio='' to rest.2008-12-01 10:15
@@ -17749,114 +17749,63 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
   detailed information) by overlaying text or icons on the video or
   other areas of the element's playback area, or in another
   appropriate manner.</p>
 
   <p>User agents that cannot render the video may instead make the
   element represent a link to an external video playback utility or to
   the video data itself.</p>
 
   <hr>
 
-  <p>The intrinsic width and height of the video are the aspect-ratio
-  corrected dimensions given by the video data itself: the <dfn
-  title="concept-video-intrinsic-width">intrinsic width</dfn> is the
-  number of pixels per line of the video data multiplied by the pixel
-  ratio given by the resource, multiplied by the resolution of the
-  resource; the <dfn title="concept-video-intrinsic-height">intrinsic
-  height</dfn> is the number of pixels per column of the video data
-  multiplied by the resolution of the resource. The <dfn
-  title="concept-video-resolution">resolution of the resource</dfn> is
-  the physical distance intended for each pixel of video data, and
-  assumes square pixels, with the resource's pixel ratio then
-  adjusting the width of the pixels to the actual
-  aspect-ratio-corrected width. In the absence of resolution
-  information defining the mapping of pixels in the video to physical
-  dimensions, user agents should assume that one pixel in the video
-  corresponds to one CSS pixel. The <dfn
-  title="concept-video-pixel-ratio">pixel ratio of the resource</dfn>
-  is the corrected aspect ratio of the video divided by the ratio of
-  the number of pixels per line to the number of pixels per column. In
-  the absence of pixel ratio information in the resource, user agents
-  should assume a default of 1.0 (square pixels).</p>
+  <p>The <dfn title="concept-video-intrinsic-width">intrinsic
+  width</dfn> and <dfn
+  title="concept-video-intrinsic-height">intrinsic height</dfn> of the
+  <span>media resource</span> are the dimensions of the resource in
+  CSS pixels after taking into account the resource's dimensions,
+  aspect ratio, clean aperture, resolution, and so forth, as defined
+  for the format used by the resource..</p>
 
   <p>The <dfn
   title="dom-video-videoWidth"><code>videoWidth</code></dfn> DOM
   attribute must return the <span
   title="concept-video-intrinsic-width">intrinsic width</span> of the
   video in CSS pixels. The <dfn
   title="dom-video-videoHeight"><code>videoHeight</code></dfn> DOM
   attribute must return the <span
   title="concept-video-intrinsic-height">intrinsic height</span> of
   the video in CSS pixels. If no video data is available, then the
   attributes must return 0.</p>
 
-  <p>If the video's <span>pixel ratio override</span>'s is
-  <i>none</i>, then the video's <dfn
-  title="concept-video-adjusted-width">adjusted width</dfn> is the
-  same as the video's <span
-  title="concept-video-intrinsic-width">intrinsic width</span>. If the
-  video has a <span>pixel ratio override</span> other than
-  <i>none</i>, then the adjusted width of the video is the number of
-  pixels per line of the video data multiplied by the video's
-  <span>pixel ratio override</span>, multiplied by the <span
-  title="concept-video-resolution">resolution of the resource</span>;
-  the <span title="concept-video-pixel-ratio">pixel ratio of the
-  resource</span> is thus ignored.</p>
-
-  <p>The video's <dfn title="concept-video-adjusted-height">adjusted
-  height</dfn> is the same as the video's <span
-  title="concept-video-intrinsic-height">intrinsic height</span>.</p>
-
-  <p>The <dfn title="concept-video-adjusted-ratio">adjusted aspect
-  ratio</dfn> of a video is the ratio of its <span
-  title="concept-video-adjusted-width">adjusted width</span> to its
-  <span title="concept-video-adjusted-height">adjusted
-  height</span>.</p>
-
-  <p>User agents may adjust the <span
-  title="concept-video-adjusted-width">adjusted width</span> and <span
-  title="concept-video-adjusted-height">height</span> of the video to
-  ensure that each pixel of video data corresponds to at least one
-  device pixel, so long as this doesn't affect the <span
-  title="concept-video-adjusted-ratio">adjusted aspect ratio</span>
-  (this is especially relevant for pixel ratios that are less than
-  1.0).</p>
-
   <p>The <code>video</code> element supports <span>dimension
   attributes</span>.</p>
 
   <p>Video content should be rendered inside the element's playback
   area such that the video content is shown centered in the playback
   area at the largest possible size that fits completely within it,
-  with the video content's <span
-  title="concept-video-adjusted-ratio">adjusted aspect ratio</span>
-  being preserved. Thus, if the aspect ratio of the playback area does
-  not match the <span title="concept-video-adjusted-ratio">adjusted
-  aspect ratio</span> of the video, the video will be shown
-  letterboxed. Areas of the element's playback area that do not
-  contain the video represent nothing.</p>
+  with the video content's aspect ratio being preserved. Thus, if the
+  aspect ratio of the playback area does not match the aspect ratio of
+  the video, the video will be shown letterboxed or pillarboxed. Areas
+  of the element's playback area that do not contain the video
+  represent nothing.</p>
 
   <p>The intrinsic width of a <code>video</code> element's playback
-  area is the <span title="concept-video-adjusted-width">adjusted
+  area is the <span title="concept-video-intrinsic-width">intrinsic
   width</span> of the video resource, if that is available; otherwise
   it is the intrinsic width of the <span>poster frame</span>, if that
   is available; otherwise it is 300 CSS pixels.</p>
 
   <p>The intrinsic height of a <code>video</code> element's playback
-  area is the <span title="concept-video-adjusted-height">intrinsic
+  area is the <span title="concept-video-intrinsic-height">intrinsic
   height</span> of the video resource, if that is available; otherwise
   it is the intrinsic height of the <span>poster frame</span>, if that
   is available; otherwise it is 150 CSS pixels.</p>
 
-  <p class="note">The <span>poster frame</span> is not affected by the
-  pixel ratio conversions.</p>
-
   <hr>
 
   <!-- XXX
    default activation behavior is to do the play() if paused, pause()
    otherwise
   -->
 
   <p>User agents should provide controls to enable or disable the
   display of closed captions associated with the video stream, though
   such features should, again, not interfere with the page's normal
@@ -18025,28 +17974,26 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
    <dt>Categories</dt>
    <dd>None.</dd>
    <dt>Contexts in which this element may be used:</dt>
    <dd>As a child of a <span>media element</span>, before any <span>flow content</span>.</dd>
    <dt>Content model:</dt>
    <dd>Empty.</dd>
    <dt>Element-specific attributes:</dt>
    <dd><code title="attr-source-src">src</code></dd>
    <dd><code title="attr-source-type">type</code></dd>
    <dd><code title="attr-source-media">media</code></dd>
-   <dd><code title="attr-source-pixelratio">pixelratio</code></dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn>HTMLSourceElement</dfn> : <span>HTMLElement</span> {
            attribute DOMString <span title="dom-source-src">src</span>;
            attribute DOMString <span title="dom-source-type">type</span>;
            attribute DOMString <span title="dom-source-media">media</span>;
-           attribute float <span title="dom-source-pixelRatio">pixelRatio</span>;
 };</pre>
    </dd>
   </dl>
 
   <p>The <code>source</code> element allows authors to specify
   multiple <span title="media resource">media resources</span> for
   <span title="media element">media elements</span>.</p>
 
   <p>The <dfn title="attr-source-src"><code>src</code></dfn> attribute
   gives the address of the <span>media resource</span>. The value must
@@ -18156,65 +18103,37 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
 
   </div>
 
   <p>The <dfn title="attr-source-media"><code>media</code></dfn>
   attribute gives the intended media type of the <span>media
   resource</span>, to help the user agent determine if this
   <span>media resource</span> is useful to the user before fetching
   it. Its value must be a valid <a href="#mq">media query</a>. <a
   href="#refsMQ">[MQ]</a></p>
 
-  <p>The <dfn
-  title="attr-source-pixelratio"><code>pixelratio</code></dfn>
-  attribute allows the author to specify the pixel ratio of anamorphic
-  <span title="media resource">media resources</span> that do not
-  self-describe their <span title="concept-video-adjusted-ratio">pixel
-  ratio</span>. The attribute value, if specified, must be a
-  <span>valid floating point number</span> greater than zero giving
-  the ratio of the correct rendered width of each pixel to the actual
-  height of each pixel in the image. The default value, if the
-  attribute is omitted or cannot be parsed, is 1.0.</p>
-
-  <p class="note">The only way this default is used is in deciding
-  what number the <code
-  title="dom-source-pixelRatio">pixelRatio</code> DOM attribute will
-  return if the content attribute is omitted or cannot be parsed. If
-  the content attribute is omitted or cannot be parsed, then the user
-  agent doesn't adjust the <span
-  title="concept-video-intrinsic-width">intrinsic width</span> of the
-  video at all; the intrinsic dimensions and the <span
-  title="concept-video-pixel-ratio">pixel ratio</span> of the video
-  are honoured.</p>
-
   <p>If a <code>source</code> element is inserted into a <span>media
   element</span> that is already in a document and whose <code
   title="dom-media-networkState">networkState</code> is in the <code
   title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> state, the user
   agent must <span>queue a task</span> that implicitly invokes the
   <code title="dom-media-load">load()</code> method on the <span>media
   element</span>, and ignores any resulting exceptions. The <span>task
   source</span> for this task is the <span>media element</span>'s own
   <span>media element new resource task source</span>.</p>
 
   <p>The DOM attributes <dfn
   title="dom-source-src"><code>src</code></dfn>, <dfn
   title="dom-source-type"><code>type</code></dfn>, and <dfn
   title="dom-source-media"><code>media</code></dfn> must
   <span>reflect</span> the respective content attributes of the same
   name.</p>
 
-  <p>The DOM attribute <dfn
-  title="dom-source-pixelRatio"><code>pixelRatio</code></dfn> must
-  <span>reflect</span> the <code
-  title="attr-source-pixelratio">pixelratio</code> content
-  attribute.</p>
-
 
 
   <h4>Media elements</h4>
 
   <p><dfn title="media element">Media elements</dfn> implement the
   following interface:</p>
 
   <pre class="idl">interface <dfn>HTMLMediaElement</dfn> : <span>HTMLElement</span> {
 
   // error state
@@ -18404,49 +18323,41 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
   attribute on <span title="media element">media elements</span> must
   <span>reflect</span> the respective content attribute of the same
   name.</p>
 
   <p>The <dfn
   title="dom-media-currentSrc"><code>currentSrc</code></dfn> DOM
   attribute is initially the empty string. Its value is changed by the
   algorithm for the <code title="dom-media-load">load()</code> method
   defined below.</p>
 
-  <p>The <dfn>pixel ratio override</dfn> of a <span>media
-  element</span> is initially <i>none</i>. Its value is changed by the
-  algorithm for the <code title="dom-media-load">load()</code> method
-  defined below.</p>
-
   <p>To <dfn>generate the list of potential media resources</dfn> for
   a <span>media element</span>, a user agent must use the following
-  steps. These steps return a list of items, each consisting of an
-  <span>absolute URL</span> giving a resource's address, and the
-  resource's pixel ratio override (either a number or
-  <i>none</i>).</p>
+  steps. These steps return a list of <span title="absolute
+  URL">absolute URLs</span> giving a resource's address.</p>
 
   <ol>
 
    <li>
 
     <p>If the <span>media element</span> has a <code
     title="attr-media-src">src</code> attribute, then run these
     substeps:</p>
 
     <ol>
 
      <li><p><span title="resolve a url">Resolve</span> the
      <span>URL</span> given in that attribute.</p>
 
      <li><p>If that is successful, then return a list consisting of
-     only one entry, with the resulting <span>absolute URL</span> as
-     the resource's address, and with the resource's pixel ratio
-     override being <i>none</i>.</p></li>
+     only one entry, the resulting <span>absolute URL</span> as the
+     resource's address.</p></li>
 
      <li><p>Otherwise, return the empty list.</p></li>
 
      <li><p>Abort the algorithm.</p></li>
 
     </ol>
 
     <p>Otherwise, the <code>source</code> elements will be used.</p>
 
    </li>
@@ -18457,28 +18368,20 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
 
    <li><p>Let <var title="">result</var> be an empty list.</p></li>
 
    <li><p>Let <var title="">candidate</var> be the first
    <code>source</code> element child in the <span>media
    element</span>.</p></li>
 
    <li><p><i>Loop</i>: this is the start of the loop that looks at the
    <code>source</code> elements.</p></li>
 
-   <li><p>If <var title="">candidate</var> has a <code
-   title="attr-source-pixelratio">pixelratio</code> attribute, and the
-   result of applying the <span>rules for parsing floating point
-   number values</span> to the value of that attribute is a number
-   greater than zero, then let the <var title="">candidate pixel ratio
-   override</var> be that result. Otherwise, let it be
-   <i>none</i>.</p></li>
-
    <li>
 
     <p>If all the following conditions are true:</p>
 
     <ul>
 
      <li>The <var title="">candidate</var> element has a <code
      title="attr-source-src">src</code> attribute.</li>
 
      <li><span title="resolve a url">Resolving</span> the
@@ -18496,27 +18399,25 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
 
      <li>The <var title="">candidate</var> element either has no <code
      title="attr-source-media">media</code> attribute, or its <code
      title="attr-source-media">media</code> attribute's value, when
      processed according to the rules for <a href="#mq">media
      queries</a>, matches the current environment. <a
      href="#refsMQ">[MQ]</a></li>
 
     </ul>
 
-    <p>...then append an item to the <var title="">result</var> list
-    consisting of the <span>absolute URL</span> resulting from <span
-    title="resolve a url">resolving</span> the <span>URL</span> given
-    in that <var title="">candidate</var> element's <code
-    title="attr-source-src">src</code> attribute as the resource's
-    address, and the <var title="">candidate pixel ratio
-    override</var> as the resource's pixel ratio override.</p>
+    <p>...then append the <span>absolute URL</span> resulting from
+    <span title="resolve a url">resolving</span> the <span>URL</span>
+    given in that <var title="">candidate</var> element's <code
+    title="attr-source-src">src</code> attribute to the <var
+    title="">result</var> list.</p>
 
    </li>
 
    <li><p>Let <var title="">candidate</var> be the next
    <code>source</code> element child in the <span>media
    element</span>, or null if there are no more such
    children.</p></li>
 
    <li><p>If <var title="">candidate</var> is not null, return to the
    step labeled <i>loop</i>.</p></li>
@@ -18780,24 +18681,20 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
     title="">candidates</var>, if any, and in the same order as they
     were added to the list, run the following steps:</p>
 
     <ol>
 
      <li><p>Let the <var title="">current media resource</var> be the
      resource given by the <span>absolute URL</span> for the current
      item in <var title="">candidates</var>. This is now the element's
      <span>media resource</span>.</p></li>
 
-     <li><p>Set the <span>media element</span>'s <span>pixel ratio
-     override</span> to the pixel ratio override given for the current
-     item in <var title="">candidates</var>.</p></li>
-
      <li><p>Set the <code
      title="dom-media-currentSrc">currentSrc</code> attribute to the
      <span>absolute URL</span> of the <var title="">current media
      resource</var>.</p></li>
 
      <li>
 
       <p>Begin to <span>fetch</span> the <var title="">current media
       resource</var>.</p>
 
@@ -23601,26 +23498,24 @@ function AddCloud(data, x, y) { ... }</pre>
    <li><span><var title="">specified width</var> - 0.5 &le;
              <var title="">specified height</var> * <var title="">target ratio</var> &le;
              <var title="">specified width</var> + 0.5</span></li>
 
    <li><span><var title="">specified height</var> - 0.5 &le;
              <var title="">specified width</var> / <var title="">target ratio</var> &le;
              <var title="">specified height</var> + 0.5</span></li>
 
   </ul>
 
-  <p>The <var title="">target ratio</var> is, in the
-  <code>video</code> element, the same as the <span
-  title="concept-video-adjusted-ratio">adjusted ratio</span>, and in
-  the other cases, the ratio of the intrinsic width to the intrinsic
-  height in the resource. The <var title="">specified width</var> and
-  <var title="">specified height</var> are the values of the <code
+  <p>The <var title="">target ratio</var> is the ratio of the
+  intrinsic width to the intrinsic height in the resource. The <var
+  title="">specified width</var> and <var title="">specified
+  height</var> are the values of the <code
   title="attr-dim-width">width</code> and <code
   title="attr-dim-height">height</code> attributes respectively.</p>
 
   <p>The two attributes must be omitted if the resource in question
   does not have both an intrinsic width and an intrinsic height.</p>
 
   <p class="note">Basically, the dimension attributes can't be used to
   stretch the image.</p>
 
   <p>To parse the attributes, user agents must use the <span>rules for

|