- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 11 Feb 2011 23:26:57 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv16602
Modified Files:
Overview.html
Log Message:
Define that <video>'s default letterboxing is the result of CSS 'object-fit' (whatwg r5878)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4719
retrieving revision 1.4720
diff -u -d -r1.4719 -r1.4720
--- Overview.html 11 Feb 2011 23:15:28 -0000 1.4719
+++ Overview.html 11 Feb 2011 23:26:53 -0000 1.4720
@@ -21550,14 +21550,19 @@
</div><p>The <code><a href="#video">video</a></code> element supports <a href="#dimension-attributes">dimension
attributes</a>.<div class="impl">
- <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 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>In the absence of style rules to the contrary, 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 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 class="note">In user agents that implement CSS, the above
+ requirement can be implemented by using the <a href="#video-object-fit">style rule suggested in the rendering
+ section</a>.</p>
<p>The intrinsic width of a <code><a href="#video">video</a></code> element's playback
area is the <a href="#concept-video-intrinsic-width" title="concept-video-intrinsic-width">intrinsic
@@ -64292,7 +64297,8 @@
<pre class="css">@namespace url(http://www.w3.org/1999/xhtml);
-iframe:not([seamless]) { border: 2px inset; }</pre>
+iframe:not([seamless]) { border: 2px inset; }
+<span id="video-object-fit">video { object-fit: contain; }</span></pre>
</div><!--KEEP-END w3c-html--><!--TT--><!--<div data-component="other Hixie drafts (editor: Ian Hickson)">--><div class="impl">
Received on Friday, 11 February 2011 23:26:59 UTC