W3C home > Mailing lists > Public > w3c-wai-ua@w3.org > July to September 2011

HTML5 support for viewports and positions

From: Greg Lowney <gcl-0039@access-research.org>
Date: Wed, 03 Aug 2011 01:54:18 -0800
Message-ID: <4E391ACA.6020309@access-research.org>
To: WAI-UA list <w3c-wai-ua@w3.org>, public-html-a11y@w3.org
Apologies for my ignorance, but since time is short, can anyone help me understand whether HTML5 fully supports the ability for scripts to do the following tasks?  Just point me in the right direction? http://www.w3schools.com/jsref/obj_window.asp says that while some of these can be done in Javascript using the Window object, "There is no public standard that applies to the Window object, but all major browsers support it." Is that really still true in HTML5? These all seem like basic things browser-based applications and accessibility aids would want to do, and yet the basic HTML5 spec doesn't mention scrollTo, pageXOffet, scrollLeft, etc.

* determine which portion of content is currently in the visible portion of the viewport

* scroll the viewport vertically and/or horizontally so that a particular element or range is in view, or to a particular position

* hit testing: determine which element is at a particular location relative to the screen and/or content of the viewport (For example, can a script determine which element is under the mouse pointer, or at the upper-left corner of the visible portion of the viewport, and then use the DOM to interact with that element? Since almost all user agents are already set up to do this, it would make no sense to make scripts walk through the entire DOM checking the coordinates of each element.)

* determine an element's position relative to the screen and/or content of viewport

     Thanks,
     Greg
Received on Wednesday, 3 August 2011 08:56:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 August 2011 08:56:33 GMT