Skip to content

Commit 25aa3b7

Browse files
committed
[css-overflow] Accept two values in overflow
Resolves w3c#2484 by changing the grammar of overflow to accept two values, and identifying the order in which they are parsed.
1 parent 24b389a commit 25aa3b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

css-overflow-3/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
297297

298298
<pre class=propdef>
299299
Name: overflow
300-
Value: ''visible'' | ''hidden'' | ''clip'' | ''scroll'' | ''auto''
300+
Value: [ ''visible'' | ''hidden'' | ''clip'' | ''scroll'' | ''auto'' ]{1,2}
301301
Initial: see individual properties
302302
Applies to: block containers [[!CSS21]], flex containers [[!CSS3-FLEXBOX]], and grid containers [[!CSS3-GRID-LAYOUT]]
303303
Inherited: no
@@ -309,8 +309,8 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
309309
</pre>
310310

311311
The 'overflow' property is a shorthand property
312-
that sets the specified values of both 'overflow-x' and 'overflow-y'
313-
to the value specified for 'overflow'.
312+
that sets the specified values of 'overflow-x' and 'overflow-y' in that order.
313+
If the second value is omitted, it is copied from the first.
314314

315315
Values have the following meanings:
316316

0 commit comments

Comments
 (0)