[csswg-drafts] [cssom-view] Why is scroll-behavior on body element not propagated to the viewport in spec? Firefox ignores this.

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

== [cssom-view] Why is scroll-behavior on body element not propagated to the viewport in spec? Firefox ignores this. ==
https://drafts.csswg.org/cssom-view-1/#propdef-scroll-behavior

I looked through issues here as well as the www-style mailing list to see any discussion around why this `scroll-behavior` has this caveat...

> The `scroll-behavior` property of the HTML body element is not propagated to the viewport.

I couldn't find anything. If the `body` element does not have a scrolling mechanism why can't `scroll-behavior` propagate to the viewport?

Currently there is an open [issue](https://bugs.chromium.org/p/chromium/issues/detail?id=801857#c_ts1523316558) for chrome regarding the properties implementation, with an [example](https://jsfiddle.net/utasir/5odf114c/1/) that sets the property to `smooth` the `body` element and of course it doesn't scroll the viewport smoothly, per spec, but if you try that example in firefox, they in fact do allow propagation. 

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

Received on Saturday, 4 August 2018 05:45:03 UTC