In quirk mode, to perform a window scroll, the document()->scrollingElement() is <body>, while the scroll-behavior value is from <html>. See: https://github.com/w3c/csswg-drafts/issues/2977
<rdar://problem/84078714>
Cathie, could you clarify the bug here? From my testing, we correctly use the value of `scroll-behavior` from the <html> element in non-quirks mode, and correctly do not propagate the value from the body. In quirks mode, we also don't allow the value of `scroll-behavior` on the body to affect window or scrollingElement scrolls, but are you saying that we should?
A testcase showing the bug would be useful.
Created attachment 447333 [details] scroll-behavior.html
Created attachment 447334 [details] scroll-behavior.html
Hi Simon, Just uploaded a test case. I mean, `document.scrollingElement` is `<body>` element, but it takes `<html>` value instead, it seems a little weird. We had an issue to discuss this in github. https://github.com/w3c/csswg-drafts/issues/2977