[whatwg] video tag: pixel aspect ratio

Jonas Sicking jonas at sicking.cc
Mon Dec 1 01:09:17 PST 2008


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



More information about the whatwg mailing list