Skip to content

[cssom-view-1] Element.scrollIntoView() does not scroll to a position:fixed element in an iframe #5492

@Bammuri

Description

@Bammuri

While contributing to Chromium, I discovered an interesting issue.
Element.scrollIntoView() does not scroll to a position:fixed element in an iframe

There is something to be discussed before addressing the issue.

How should we treat elements that are offscreen and can't be scrolled on screen? e.g. https://jsbin.com/qehegek

Bokan@ said,
if, after scrolling the immediate-most parent the element isn't visible in the parent, should we keep recursing up the scroll chain? I'm not sure what the right answer is (my hunch would be "no" but could easily be convinced)

I agree, and I think we should handle exceptions in these cases.
If there are other cases, please tell me:)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions