Skip to content

[command invokers] scroll command #1220

Open
@flackr

Description

@flackr

I think that we should be able to set up a scroll command for buttons similar to the implicit scroll that you get with the ::scroll-button pseudo-elements: https://drafts.csswg.org/css-overflow-5/#scroll-buttons

My thinking is that this would be something like the following:

<div id=scroller>

</div>
<button command="scroll(down)" commandfor="scroller">Show more</button>

I'm open to bikeshedding on whether a functional syntax makes sense, if it needs changing or if we should break this out into a series of scroll-* commands, though note that we have many directions and we may want to introduce / support distances as well (e.g. scroll to top).

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