Skip to content

Consider using :current (+ :past & :future) instead of :checked for markers #28

@Schepp

Description

@Schepp

I find the use of the :checked pseudo class not to be the ideal choice for something that is not a checkbox or switch. Instead what we wanna mimick in CSS is HTML's aria-current-attribute. This is best done via the existing :current pseudo class, which is currently used for video VTTs and already offers a way to mark the active element in a sequential row of elements. For markers that are located before and after the active marker, we could then also use the closely related :past and :future pseudo classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions