New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 776368 link

Starred by 5 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

How to reach full interoperability on default scrolling behavior for HTMLElement focus()

Project Member Reported by zcorpan@gmail.com, Oct 19 2017

Issue description

Context is: https://github.com/w3c/csswg-drafts/pull/1805#issuecomment-337801758

> Ask browser vendors to consider if they want to get full interoperability on default scrolling behavior for focus(), and if so what the behavior should be. I can file issues.

The current situation is summarized in https://github.com/w3c/csswg-drafts/pull/1805#issuecomment-331383688 and repeated below.

Chrome, Opera, Safari behave as follows.
Entirely in view: No scrolling
Partially in view: Scrolling (block: nearest, inline: nearest)
Entirely out of view: Scrolling (block: center, inline: center)

Firefox, Edge behave as follows.
Entirely in view: No scrolling
Partially in view: No scrolling
Entirely out of view: Scrolling (block: nearest, inline: nearest)

Getting agreement between browsers here would give us a stable foundation to extend the focus() API with scrollOptions (or something) that can explain the default scrolling behavior and allow customizing alignment etc. It also makes the web platform more predictable for developers.
 

Comment 1 by kochi@chromium.org, Oct 24 2017

Cc: kochi@chromium.org
Owner: eirage@chromium.org
Ella, could you own this?

Comment 2 by eirage@chromium.org, Oct 24 2017

Cc: dtapu...@chromium.org nzolghadr@chromium.org
Yes, I can own this, thanks.
Status: Assigned (was: Untriaged)

Comment 4 by laukst...@gmail.com, Oct 26 2017

WHATWG spec proposal discussion in https://github.com/whatwg/html/issues/834

Sign in to add a comment