W3C home > Mailing lists > Public > public-html@w3.org > November 2008

video: various width/height attributes

From: Jim Jewett <jimjjewett@gmail.com>
Date: Sat, 22 Nov 2008 23:31:38 -0500
Message-ID: <fb6fbf560811222031u41a1a4f9w8234c088cce3fad2@mail.gmail.com>
To: "HTML WG" <public-html@w3.org>

Looking at http://www.whatwg.org/specs/web-apps/current-work/#video

I think the various width/height definitions need to be clarified (and
placed right next to each other?), or even reduced, to avoid buggy
spec-reading.

As best I can tell:

(1)  The document element itself has only "width" and "height", which
are in CSS pixels.
(2)  The document element attributes are reflected in the DOM as
"width" and "height".
(3)  The binary data in the video's own media stream may include
height and width, which are called "intrinsic height" and "intrinsic
width".
(4)  "intrinsic height" and "intrinsic width" are added to the DOM
under the names "videoWidth" and "videoHeight"
(5)  "adjusted height" and "adjusted width" do not appear in the
document or the DOM; they are not available to scripts.  They are
simply convenient labels to simplify the spec-writing on how to deal
with non-square pixels in either the source media or the display
screen.  (Or perhaps only of the display screen?)

-jJ
Received on Sunday, 23 November 2008 04:32:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:26 GMT