[csswg-drafts] [css-overflow] Let 'overflow' accept two values

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-overflow] Let 'overflow' accept two values ==
>From https://github.com/w3c/csswg-drafts/issues/2000#issuecomment-346085897. `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,

```css
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.

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

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2484 using your GitHub account

Received on Thursday, 29 March 2018 14:26:08 UTC