W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2008

[whatwg] video tag: pixel aspect ratio

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 1 Dec 2008 01:09:17 -0800
Message-ID: <63df84f0812010109g36842b03i18c5e02fd84122de@mail.gmail.com>
On Mon, Dec 1, 2008 at 12:37 AM, Ian Hickson <ian at hixie.ch> wrote:
> On Mon, 1 Dec 2008, Jonas Sicking wrote:
>>
>> Another thing, if I as a website developer find a video that was encoded
>> with the wrong pixel ratio, wouldn't the simplest, and most intuitive,
>> way to fix it be to simply set a width and height on video until it
>> looked approximately correct? Yes, it's a hack, and should not
>> discouraged, but so is pixelratio.
>>
>> (haven't followed this discussion in detail so appologies if
>> width/height has been disqualified already)
>
> width/height on <video> doesn't stretch, so that you can play videos of
> varying aspect ratios in the same surface without rendering issues.

Ah, makes sense. Wasn't there once upon a time a CSS draft that let
you specify how replaced elements should stretch in situations like
this? So you could choose if it should zoom-to-fit (like it sounds
like <video> does) or stretch-to-fit (like <img> does), zoom-to-fill
as well as a few other things. I can't seem to find it though...

I guess my point is, can we let CSS deal with this? If it indeed needs
to be dealt with.

/ Jonas
Received on Monday, 1 December 2008 01:09:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:46 UTC