[Bug 11386] Defer <video> rendering (letterboxing) to CSS


Philip Jägenstedt <philipj@opera.com> changed:

           What    |Removed                     |Added
                 CC|                            |philipj@opera.com

--- Comment #1 from Philip Jägenstedt <philipj@opera.com> 2010-11-23 09:11:52 UTC ---
The spec currently says "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."

Opera has implemented support for CSS3 object-fit [1] and object-position [2]
and I would like the spec to state the default rendering in terms of object-fit
and object-position, as such:

video { image-fit: contain; image-position: 50% 50% }

We also support it for img, perhaps that should also be updated accordingly:

img { image-fit: fill }

Note that Opera's implementation is still prefixed: -o-object-fit and

[1] http://dev.w3.org/csswg/css3-images/#object-fit
[2] http://dev.w3.org/csswg/css3-images/#object-position

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 23 November 2010 09:11:55 UTC