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

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

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Tue, 17 Oct 2017 12:14:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-337211964-1508242467-sysbot+gh@w3.org>
It would be good to have the WG give input on how we should reach interoperability on how `focus()` scrolls; see @jihyerish [comment above](https://github.com/w3c/csswg-drafts/pull/1805#issuecomment-331383688) with browser results.

As the state is right now, the spec (with this PR) can't explain the Chrome, Opera, Safari behavior. The Firefox, Edge behavior is like:
// elm.focus() is equivalent to
elm.focus({ scrollOptions: { scrollMode: "if-hidden", block: "nearest", inline: "nearest" }});

GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/1805#issuecomment-337211964 using your GitHub account
Received on Tuesday, 17 October 2017 12:14:36 UTC

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