HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2493

File a bug

SVNBugCommentTime (UTC)
2493[Gecko] [Opera] [Webkit] Put pixelratio='' to rest.2008-12-01 10:15
Index: source
===================================================================
--- source	(revision 2492)
+++ source	(revision 2493)
@@ -17756,27 +17756,13 @@
 
   <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
@@ -17789,67 +17775,30 @@
   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
@@ -18032,14 +17981,12 @@
    <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>
@@ -18163,28 +18110,6 @@
   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
@@ -18202,14 +18127,8 @@
   <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
@@ -18411,17 +18330,10 @@
   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>
 
@@ -18437,9 +18349,8 @@
      <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>
 
@@ -18464,14 +18375,6 @@
    <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>
@@ -18503,13 +18406,11 @@
 
     </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>
 
@@ -18787,10 +18688,6 @@
      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
@@ -23608,12 +23505,10 @@
 
   </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>
 

|