W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

Re: [csswg-drafts] [cssom-view] Default values of ScrollIntoViewOptions contradicts in spec

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Mon, 22 May 2017 10:29:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-303062133-1495448987-sysbot+gh@w3.org>
The intent is to provide an easy way to do center-center, since that is a common case, but legacy requires nearest-start for no-argument or `true` calls.

elm.scrollIntoView({}); // center-center
elm.scrollIntoView(); // nearest-start
elm.scrollIntoView(true); // nearest-start
elm.scrollIntoView(false); // nearest-end

I would also recommend reading the editor's draft: https://drafts.csswg.org/cssom-view/

GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1353#issuecomment-303062133 using your GitHub account
Received on Monday, 22 May 2017 10:29:55 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:13 UTC