W3C home > Mailing lists > Public > public-html@w3.org > March 2009

Sizing of <video poster=svg>

From: Simon Pieters <simonp@opera.com>
Date: Fri, 20 Mar 2009 15:25:42 +0100
To: public-html <public-html@w3.org>, "www-style@w3.org" <www-style@w3.org>, "www-svg@w3.org" <www-svg@w3.org>
Message-ID: <op.uq3g00j2idj3kv@zcorpandell.linkoping.osa>
(Sorry for the cross-posting...)

Spec material:

Consider the following SVG image:

   <svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 2 2">
    <circle r="1"/>

It has an intrinsic ratio but no intrinsic dimensions.

Now reference that image in <video poster>. What should the size of the video element be?

<video>s are by default 300x150.

Inline replaced elements with an intrinsic ratio but no intrinsic size will determine the width from the containing block and the height from the ratio.

Video poster images are temporary in their nature -- the video element will resize to the actual video's dimensions when those are known. Therefore, IMHO, it makes more sense to keep the 300x150 size in the case above. Unless there comes around a video format that doesn't have intrinsic dimensions... What do people think?

On a related note, if the same image is referenced from <iframe src>, Opera currently uses 300x150. <img>, <embed> and <object> use the rules specified in CSS.

Simon Pieters
Opera Software
Received on Friday, 20 March 2009 14:26:27 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:43 UTC