Skip to content

[css-overflow] Let 'overflow' accept two values #2484

@Loirooriol

Description

@Loirooriol

From #2000 (comment). overflow is a shorthand property of overflow-x and overflow-y, but it can only set them to the same value. It would be more convenient if the syntax was

[ visible | hidden | clip | scroll | auto ]{1,2}

The two values specify the behavior in the horizontal and vertical direction, respectively. If only one value is specified, the second value defaults to the same value. For example,

overflow: hidden auto; /* overflow-x: hidden; overflow-y: auto */

Then if #1282 introduces a flow-relative syntax for shorthands, it could apply to overflow, e.g.

overflow: hidden auto !relative; /* overflow-inline: hidden; overflow-block: auto */

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions