This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://dev.w3.org/csswg/cssom-view/#scroll-an-element-into-view should be used by the fragment identifier stuff, I think.
Note that there are some security/privacy issues here as regards scrolling up the parent iframe chain; Mozilla's been considering changing its behavior in various ways for this stuff.
The algorithm is blocking on cross-origin at the moment.
Why shouldn't this be left up to the browser? The CSSOM algorithm seems to be media-specific, too.
I think visual user agents should do the same thing. And should be equally protected from the privacy issue.
By media-specific, I mean that the algorithm in CSSOM makes no sense e.g. for audio browsers, unlike the one in the HTML spec which, while vague, does at least make sense for those media.
Right, I meant that HTML5 could keep the generic stuff but defer for visual media. But maybe CSSOM View should take it all given that scrollIntoView() uses the same algorithm.
Let me know what you decide to do and I'll fix this bug and 10533 accordingly.
Checked in as WHATWG revision r5620. Check-in comment: Move scrollIntoView() to CSSOM View and update the other scroll algorithm to use the CSSOM View definition. http://html5.org/tools/web-apps-tracker?from=5619&to=5620 EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Accepted Change Description: see diff given above Rationale: CSSOM View will be updated accordingly