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

Re: [csswg-drafts] [css-scroll-snap][cssom] Define interaction of ScrollIntoView options and scroll-snap

From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
Date: Tue, 07 Nov 2017 18:02:58 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-342569315-1510077777-sysbot+gh@w3.org>
The Working Group just discussed `Scroll Into View options`, and agreed to the following resolutions:

* `RESOLVED: We will make the changes to specs as necessary to ack scroll snap when no arguments are provided to ScrollIntoView`
* `RESOLVED: To keep scrollIntoView() options as they are`

<details><summary>The full IRC log of that discussion</summary>
&lt;gregwhitworth> Topic: Scroll Into View options<br>
&lt;astearns> github: https://github.com/w3c/csswg-drafts/issues/1708<br>
&lt;gregwhitworth> fantasai: there are several different options that target an element, such as scroll into view<br>
&lt;gregwhitworth> fantasai: then there is the focus api<br>
&lt;gregwhitworth> fantasai: this takes a bunch of args for smooth scrolling or not, how that element should be aligned within the viewport<br>
&lt;gregwhitworth> fantasai: the default behavior you should be following the scroll snap if the scroll snap says something<br>
&lt;gregwhitworth> fantasai: the second question is, are those options even necessary if there are scroll snap options<br>
&lt;gregwhitworth> TabAtkins: we discussed this internally, there may be areas where you want to do one off alignment<br>
&lt;gregwhitworth> fantasai: do you have a usecase<br>
&lt;gregwhitworth> eae: one is up and down arrows, you may want to align to the top or the bottom<br>
&lt;gregwhitworth> iank_: if you have a news feed you may want to use one or the either based on direction<br>
&lt;gregwhitworth> dbaron: we had a discussion about these options a few weeks ago<br>
&lt;gregwhitworth> dbaron: in that discussion I pasted the link to our internal code and if we want use cases where we use it<br>
&lt;gregwhitworth> smfr: is scrollIntoView default the same as SIV false<br>
&lt;dbaron> The Gecko internal API is documented here: https://searchfox.org/mozilla-central/source/layout/base/nsIPresShell.h#669-763<br>
&lt;dbaron> er, better permalink: https://searchfox.org/mozilla-central/rev/7e090b227f7a0ec44d4ded604823d48823158c51/layout/base/nsIPresShell.h#669-763<br>
&lt;gregwhitworth> smfr: we may scroll it into the top or the bottom, just as long as it's in the view<br>
&lt;gregwhitworth> TabAtkins: this became a weird api for legacy issues<br>
&lt;gregwhitworth> eae: our default is either true or false based on distance<br>
&lt;gregwhitworth> florian: your usecase of the newsfeed I think we should solve that in CSS scroll snapping<br>
&lt;gregwhitworth> myles: but that criteria of direction could be a bunch of different criteria, I don't think we should do that<br>
&lt;gregwhitworth> dbaron: most of the complicated ones come from the a11y code<br>
&lt;gregwhitworth> iank_: it looks like scrollIntoView args might be different than scrollIntoView with bool<br>
&lt;dbaron> s/most/some/<br>
&lt;gregwhitworth> iank_: if it's bool we set the block to start<br>
&lt;gregwhitworth> TabAtkins: that isn't per spec<br>
&lt;gregwhitworth> iank_: ok<br>
&lt;gregwhitworth> eae: ours is completely broken<br>
&lt;gregwhitworth> TabAtkins: I may open an issue on this<br>
&lt;gregwhitworth> astearns: I'm hearing at least 4 threads of convo<br>
&lt;gregwhitworth> astearns: do we need to have any more discussion about scrolling the least amount?<br>
&lt;gregwhitworth> TabAtkins: that's a separate thing to consider for scroll snap<br>
&lt;gregwhitworth> astearns: 1. The argument at the end should be dropped - sounds like they should not be<br>
&lt;gregwhitworth> 2. Should scroll snap win when there are no args in SIV - that sounds like there are no arguments against that<br>
&lt;gregwhitworth> fantasai: the two specs conflict<br>
&lt;gregwhitworth> fantasai: the OM spec doesn't ack scroll snap<br>
&lt;dbaron> there seem to be different behaviors for: various a11y things, going to named anchors, focus changes, caret position changes, dom apis to scroll element into view, and some other things (e.g., things related to form autofill popups or devtools)<br>
&lt;gregwhitworth> astearns: does anyone have any objection to making those changes<br>
&lt;gregwhitworth> RESOLVED: We will make the changes to specs as necessary to ack scroll snap when no arguments are provided to ScrollIntoView<br>
&lt;gregwhitworth> fantasai: anything that does scrolling needs to be evaluated<br>
&lt;gregwhitworth> astearns: any objections with not mucking with the ScrollIntoView() args?<br>
&lt;gregwhitworth> RESOLVED: To keep scrollIntoView() options as they are<br>

GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1708#issuecomment-342569315 using your GitHub account
Received on Tuesday, 7 November 2017 18:03:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 7 November 2017 18:03:14 UTC