Skip to content

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

@jonjohnjohnson

Description

@jonjohnjohnson

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 for chrome regarding the properties implementation, with an example 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.

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