This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27264 - Scrolling behaviour is too prescriptive. Should follow behaviour of other focusable elements.
Summary: Scrolling behaviour is too prescriptive. Should follow behaviour of other foc...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: CR HTML Canvas 2D Context (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Rik Cabanier
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-07 02:26 UTC by Mark Sadecki
Modified: 2014-12-12 17:30 UTC (History)
2 users (show)

See Also:


Attachments

Description Mark Sadecki 2014-11-07 02:26:09 UTC
When a canvas is not displayed in the viewport and focus is moved to a focusable child element of the canvas, the spec says that the canvas should scroll so that it aligns with the top of the screen.  This is the expected behaviour if the canvas is above the viewport.  However, if it is below, one would expect the page to scroll just enough so that the canvas is visible at the bottom of the viewport, much like the behaviour expected when one moves focus to any other focusable element that is beyond the bounds of the viewport.

Recommend changing the following:

If the focus area is not on the screen, then scroll the focus outline into view by aligning it to the top when it receives focus. 

to:

If the focus area is not on the screen, then scroll the focus outline into view  when it receives focus.