W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

[whatwg] HTML5 Feedback: Section 3.5.3 Scrolling elements into view

From: Brad Fults <bfults@gmail.com>
Date: Mon, 8 Oct 2007 22:11:43 -0700
Message-ID: <1959130b0710082211m7a3fff53v9d6601fd2a81a193@mail.gmail.com>
There are a couple of problems I have found in this section.

"If it isn't possible to show the entire element in that way, or if
the argument is omitted or is true, then the user agent must instead
simply align the top of the element with the top of the viewport." [1]

I have two issues with this text:

  1. The word "simply" is rhetoric and doesn't seem reasonable or
useful in the context of this part of the specification.
  2. It may not be possible to align the top of the element with the
top of the viewport without scrolling past the bottom of the document,
so the "must" is unreasonable. This contingency should be mentioned
(scrolling past the bottom of the document is not, as far as I know,
desired).

Secondly, with respect to this section as a whole, I see no
description of necessary behavior for horizontal scrolling. Surely
this is an issue that must be addressed, as it would be decidedly
deficient if scrollIntoView() only took vertical scrolling into
account, leaving horizontally overflown content still outside of the
viewport after the method's invocation.


[1] - http://www.whatwg.org/specs/web-apps/current-work/#scrollintoview


-- 
Brad Fults
Received on Monday, 8 October 2007 22:11:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC