W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > January 2011

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

From: <bugzilla@jessica.w3.org>
Date: Tue, 11 Jan 2011 18:40:46 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Pcj9C-0001Ah-0K@jessica.w3.org>

--- Comment #12 from Philip Jägenstedt <philipj@opera.com> 2011-01-11 18:40:45 UTC ---
(In reply to comment #11)
> (In reply to comment #10)
> > (In reply to comment #9)
> > > This should be defined in HTML, in the UA stylesheet.  It's perfectly fine to
> > > have styles for <video> and <img> be different there.
> > 
> > Precisely, this was my thinking too. So it's not out of scope for HTML, then?
> Ah, talking past each other.  I meant that it was out-of-scope for HTML to
> define the rendering itself, since CSS can now handle it.  It's perfectly
> appropriate (and necessary) for HTML to define *what* CSS is used to handle it.

Yep, this is what I'm suggesting: that we put something like this in the user
agent style sheet:

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

img { object-fit: fill }

(And like any default style it can be hardcoded, so it doesn't necessarily
require browsers to support object-fit and object-position via CSS, although
that would be nice.)

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, 11 January 2011 18:40:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 18:40:48 GMT