Skip to content

[css-overflow-5] Default UA styles for scroll markers and scroll buttons #10935

@flackr

Description

@flackr

When developers create scroll markers and scroll buttons, they should provide good default UA styles to be accessible and usable. With nothing spec'd it takes a lot of styles to get these controls usable.

I propose, scroll buttons be styled like buttons by the UA stylesheet. I'd suggest copying the UA button styles, including pseudo-class states (e.g. :focus).

Scroll markers behave as links, and as such I think should use the UA link styles. :visited will never apply to pseudo-element scroll markers, so that part can be skipped.

I think ::scroll-marker-group should have a specified size large enough to fit a line of ::scroll-marker elements, perhaps scrolling by default if the list is too large.

The end goal is that with no specific styling applied these controls should all work reasonably without any particular styling attention.

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