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

Bammuri has just created a new issue for https://github.com/w3c/csswg-drafts:

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

While contributing to Chromium, I discovered an interesting issue.
[Element.scrollIntoView() does not scroll to a position:fixed element in an iframe](https://bugs.chromium.org/p/chromium/issues/detail?id=1019427#c_ts1598605695)

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.



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5492 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 3 September 2020 06:34:12 UTC