Skip to content

Commit 9d5d48d

Browse files
committed
[css-overflow-3] Consolidate 'overflow' longhands.
1 parent 0a494a4 commit 9d5d48d

1 file changed

Lines changed: 12 additions & 24 deletions

File tree

css-overflow-3/Overview.bs

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
344344
is the [=scrollport=] of its nearest [=scroll container=] ancestor.
345345

346346
<pre class=propdef>
347-
Name: overflow-x, overflow-y
347+
Name: overflow-x, overflow-y, overflow-block, overflow-inline
348348
Value: visible | hidden | clip | scroll | auto
349349
Initial: ''visible''
350350
Applies to: block containers [[!CSS2]], flex containers [[!CSS3-FLEXBOX]], grid containers [[!CSS3-GRID-LAYOUT]], and [=replaced=] elements
@@ -355,12 +355,20 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
355355
</pre>
356356

357357
The 'overflow-x' property specifies
358-
the handling of <a>overflow</a> in the horizontal direction
358+
the handling of <a>overflow</a> in the horizontal axis
359359
(i.e., overflow from the left and right sides of the box),
360360
and the 'overflow-y' property specifies the handling
361-
of <a>overflow</a> in the vertical direction
361+
of <a>overflow</a> in the vertical axis
362362
(i.e., overflow from the top and bottom sides of the box).
363363

364+
The 'overflow-block' and 'overflow-inline' properties likewise
365+
specify the handling of [=overflow=]
366+
in the [=block axis|block=] and [=inline axis|inline=] axis, respectively
367+
368+
These four properties form a [=logical property group=]
369+
together with the 'overflow' [=shorthand=],
370+
and interact as defined in [[css-logical-1#box]].
371+
364372
<pre class="propdef shorthand">
365373
Name: overflow
366374
Value: [ visible | hidden | clip | scroll | auto ]{1,2}
@@ -372,7 +380,7 @@ Scrolling and Clipping Overflow: the 'overflow-x', 'overflow-y', and 'overflow'
372380
Animation type: discrete
373381
</pre>
374382

375-
The 'overflow' property is a shorthand property
383+
The 'overflow' property is a [=shorthand property=]
376384
that sets the specified values of 'overflow-x' and 'overflow-y' in that order.
377385
If the second value is omitted, it is copied from the first.
378386

@@ -611,26 +619,6 @@ Overflow Viewport Propagation</h3>
611619
If ''overflow/clip'' is applied to the viewport,
612620
it must be interpreted as ''overflow/hidden''.
613621

614-
<h3 id=logical>
615-
Flow Relative Properties: the 'overflow-block' and 'overflow-inline' properties</h3>
616-
617-
The following properties are processed according to the same processing model
618-
as the Flow-Relative box model properties defined in [[css-logical-1#box]].
619-
620-
<pre class="propdef">
621-
Name: overflow-inline, overflow-block
622-
Value: <<'overflow'>>
623-
Initial: visible
624-
Applies to: Same as 'overflow-x' and 'overflow-y'
625-
Inherited: no
626-
Percentages: N/A
627-
Computed value: Same as 'overflow-x' and 'overflow-y'
628-
Animation type: discrete
629-
</pre>
630-
631-
These properties correspond to the
632-
'overflow-x' and 'overflow-y' properties.
633-
The mapping depends on the element's 'writing-mode'.
634622

635623
<h3 id=smooth-scrolling caniuse=css-scroll-behavior>
636624
Smooth Scrolling: the 'scroll-behavior' Property</h3>

0 commit comments

Comments
 (0)