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

Re: [csswg-drafts] [cssom-view] Add notIfViewed to ScrollIntoViewOptions; add FocusScrollOptions

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Wed, 13 Sep 2017 06:37:22 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-329073170-1505284632-sysbot+gh@w3.org>
```
focus({ preventScroll: true });
focus({ scrollOptions: { scroll: "always" } });
focus({ scrollOptions: { scroll: "if-needed" } });
scrollIntoView({ scroll: "always" });
scrollIntoView({ scroll: "if-needed" });
```
"if-needed" would be familiar for developers using `scrollIntoViewIfNeeded()`.

-- 
GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/1805#issuecomment-329073170 using your GitHub account
Received on Wednesday, 13 September 2017 06:37:16 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:43 UTC