Robert Flack

Results 187 comments of Robert Flack

> @flackr `focus()` and `scrollIntoView()` might be quite different. To align with focus behavior, the default `scrollIntoViewOptions` would need to be `{block: 'nearest', inline: 'nearest'}` which minimizes the scrolling to...

Can you explain the difference in your video? I see scrolling when the input is focused in both? I believe that the target region for Element.scrollIntoView is the border box,...

Naively for built-in interactions, the UA could do something like select a snap area which scrolls no further than 100% of the scrollport if possible, though I wonder if there's...

Alternately a more generic option could be to snap in a way that scrolls no more than the requested distance if possible. This would ensure that page-down never scrolls more...

From @dholbert: > FWIW there is a scrollByPages API in Firefox, non-standard: https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollByPages

> The [`scrollByPages()` implementation is here](https://searchfox.org/mozilla-central/rev/72d959d715d3f832328057600811c09ee5195ae1/dom/base/nsGlobalWindowInner.cpp#3909-3926) if anyone's curious to see it. That function calls a generic C++ `ScrollBy()` function that's shared by a bunch of programmatic scrolling APIs, and...

The simple approach which matches implementations would seem to be to add a granularity to [ScrollToOptions](https://www.w3.org/TR/cssom-view-1/#dictdef-scrolltooptions). If you passed a page granularity then it could interpret the `left` and `top`...

At the same time if we change this we should probably change the spec terminology from "enter" to "activation" or something similar, giving us the activation range and the active...

> I really don't like using the `activation`/`active` distinction like this. Differing just in tense isn't usually a good idea, as we don't usually communicate tense in our property names...

TLDR; There are two decisions, 1. Does the activation / entry property really need to have anything extra in the property name? (It doesn't currently) 2. Is the better term...