Skip to content

[css-conditional-5] Disambiguate scrollable/direction when along axis/towards edge #12623

@noamr

Description

@noamr

The current explainer defines the following properties:

scrollable: none | top | right | bottom | left | block-start | inline-start | block-end | inline-end | x | y | block | inline;
direction: none | top | right | bottom | left | block-start | inline-start | block-end | inline-end | x | y | block | inline;

This is a bit ambiguous in terms of readability. For example "block" means "along the block axis", it's not exactly a direction.
Also it's not clear that "direction" means "currently scrolling".

Proposing instead something along the lines of:

scrolling-along: none | x | y | block | inline;
scrollable-along: none | x | y | block | inline;
scrolling-towards: none | top | right | bottom | left | block-start | inline-start | block-end | inline-end;
scrollable-towards: none | top | right | bottom | left | block-start | inline-start | block-end | inline-end;

We can also use the words axis and direction instead of along and towards.
Alternatively, change direction to scrolling so that at least that ambiguity is sorted.

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