Skip to content

[css-overflow] Is the box a scroll container if only one of 'overflow-x' or 'overflow-y' is 'clip'? #1971

@Loirooriol

Description

@Loirooriol

According to https://drafts.csswg.org/css-overflow-3/#ref-for-propdef-overflow%E2%91%A3,

  • visible and clip prevent the box from being a scroll container.
  • hidden, scroll and auto force the box into being a scroll container.

visible is not a problem because it computes to auto if one of overflow-x or overflow-y is not visible.

However, what happens if one of overflow-x or overflow-y is clip and the other is hidden, scroll or auto?

Is the box a scroll container or not?

Maybe a box could be a scroll container in one direction but not in the other one. Or maybe clip could compute to hidden similarly to visible.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions