Skip to content

Commit

Permalink
[] (0) Make scrollIntoView() into a no-op if the page is too short.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1968 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 31, 2008
1 parent 7337b93 commit 4cbbff2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 5 additions & 3 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -38811,9 +38811,11 @@ at the first element with the given ID must be treated as if it was cloned and r
of the element aligned with the bottom of the viewport. 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 should instead align the top of
the element with the top of the viewport. Visual user agents should
further scroll horizontally as necessary to bring the element to the
attention of the user.
the element with the top of the viewport. If the entire scrollable part of
the content is visible all at once (e.g. if a page is shorter than the
viewport), then the user agent should not scroll anything. Visual user
agents should further scroll horizontally as necessary to bring the
element to the attention of the user.

<p>Non-visual user agents may ignore the argument, or may treat it in some
media-specific manner most useful to the user.</p>
Expand Down
7 changes: 5 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -36233,8 +36233,11 @@ at the first element with the given ID must be treated as if it was cloned and r
viewport. 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
should instead align the top of the element with the top of the
viewport. Visual user agents should further scroll horizontally as
necessary to bring the element to the attention of the user.</p>
viewport. If the entire scrollable part of the content is visible
all at once (e.g. if a page is shorter than the viewport), then the
user agent should not scroll anything. Visual user agents should
further scroll horizontally as necessary to bring the element to the
attention of the user.</p>

<p>Non-visual user agents may ignore the argument, or may treat it
in some media-specific manner most useful to the user.</p>
Expand Down

0 comments on commit 4cbbff2

Please sign in to comment.