Skip to content

Commit b69be9e

Browse files
frivoalfantasai
authored andcommitted
Deal with overflow:clip (#2596)
[css-align][css-flexbox][css-grid][css-transforms-2][cssom-view] deal with overflow:clip Make sure that various specs correctly invoke either "overflow is not visible" or "is a scroll container" since these two are no longer equivalent.
1 parent 2cdf747 commit b69be9e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

css-align-3/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@ Determining the Baselines of a Box</h2>
20702070
For the purposes of finding the baselines of a box,
20712071
it and all its in-flow descendants with a scrolling mechanism (see the 'overflow' property)
20722072
must be considered as if scrolled to their origin.
2073-
Furthermore, if, in the case of a box with non-''visible'' overflow,
2073+
Furthermore, if, in the case of a <a>scroll container</a> box,
20742074
the resulting position of a first (last) baseline
20752075
is past a box's end (start) border edge,
20762076
its position is clamped to that border edge.

css-flexbox-1/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -905,9 +905,9 @@ Automatic Minimum Size of Flex Items</h3>
905905

906906
To provide a more reasonable default <a>minimum size</a> for <a>flex items</a>,
907907
the used value of a <a>main axis</a> <a>automatic minimum size</a>
908-
on a <a>flex item</a> whose 'overflow' is ''overflow/visible'' in the <a>main axis</a>
908+
on a <a>flex item</a> that is not a <a>scroll container</a>
909909
is a <dfn>content-based minimum size</dfn>;
910-
any other 'overflow' value means the <a>automatic minimum size</a> is zero, as usual.
910+
for <a>scroll containers</a> the <a>automatic minimum size</a> is zero, as usual.
911911

912912
In general, the <a>content-based minimum size</a> of a <a>flex item</a>
913913
is the smaller of its <a>content size suggestion</a> and its <a>specified size suggestion</a>.

css-grid-1/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,7 @@ Automatic Minimum Size of Grid Items</h3>
12381238

12391239
To provide a more reasonable default <a>minimum size</a> for <a>grid items</a>,
12401240
the used value of an <a>automatic minimum size</a> in a given axis
1241-
on a <a>grid item</a> whose 'overflow' is ''overflow/visible'' in that same axis
1241+
on a <a>grid item</a> that is not a <a>scroll container</a>
12421242
and that spans at least one <a>track</a> in that axis
12431243
whose <a>min track sizing function</a> is ''grid-template-rows/auto''
12441244
is a <dfn>content-based minimum size</dfn>;

css-transforms-2/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ Grouping property values {#grouping-property-values}
677677

678678
The following CSS property values require the user agent to create a flattened representation of the descendant elements before they can be applied, and therefore force the used value of ''transform-style'' to ''flat'':
679679

680-
* 'overflow': any value other than ''overflow/visible''.
680+
* 'overflow': any value other than ''overflow/visible'' or ''overflow/clip''.
681681
* 'opacity': any value less than 1.
682682
* 'filter': any value other than ''filter/none''.
683683
* 'clip': any value other than ''clip/auto''.
@@ -694,7 +694,7 @@ The following CSS property values cause an ''transform-style/auto'' value of ''t
694694

695695
In both cases the computed value of 'transform-style' is not affected.
696696

697-
Issue: Having overflow imply transform-style: flat causes every element with non-visible overflow to become
697+
Issue: Having overflow imply transform-style: flat causes every element with non-visible/clip overflow to become
698698
a stacking context, which is unwanted. See <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=28252">Bug 28252</a>.
699699

700700

cssom-view-1/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ An element <var>body</var> (which will be <a>the HTML <code>body</code> element<
133133
<dfn>potentially scrollable</dfn> if all of the following conditions are true:
134134

135135
* <var>body</var> has an associated <a>CSS layout box</a>.
136-
* <var>body</var>'s <a>parent element</a>'s computed value of the 'overflow-x' or 'overflow-y' properties is not ''overflow/visible''.
137-
* <var>body</var>'s computed value of the 'overflow-x' or 'overflow-y' properties is not ''overflow/visible''.
136+
* <var>body</var>'s <a>parent element</a>'s computed value of the 'overflow-x' or 'overflow-y' properties is neither ''overflow/visible'' nor ''overflow/clip''.
137+
* <var>body</var>'s computed value of the 'overflow-x' or 'overflow-y' properties is neither ''overflow/visible'' nor ''overflow/clip''.
138138

139139
Note: A <{body}> element that is <a>potentially scrollable</a> might not have a <a>scrolling box</a>.
140140
For instance, it could have a used value of 'overflow' being ''overflow/auto'' but not have its content overflowing its content area.

0 commit comments

Comments
 (0)