W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Fri, 10 Nov 2017 18:33:14 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-273021360-1510338793-sysbot+gh@w3.org>
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-overflow] Is the box a scroll container if only one of 'overflow-x' or 'overflow-y' is 'clip'? ==
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](https://drafts.csswg.org/css-overflow-3/#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`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1971 using your GitHub account
Received on Friday, 10 November 2017 18:33:18 UTC

This archive was generated by hypermail 2.3.1 : Friday, 10 November 2017 18:33:19 UTC