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

Confirmed Issue #14298983 • Assigned to Travis L.

Details

Author
Simon P.
Created
Oct 19, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Chrome
  • Safari
  • Firefox
  • Opera
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

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.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Assigned To to “travil”

      Changed Assigned To from “travil” to “Travis L.”

      Changed Status to “Confirmed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in