Skip to content

Deal with overflow:clip #2596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion css-align-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ Determining the Baselines of a Box</h2>
For the purposes of finding the baselines of a box,
it and all its in-flow descendants with a scrolling mechanism (see the 'overflow' property)
must be considered as if scrolled to their origin.
Furthermore, if, in the case of a box with non-''visible'' overflow,
Furthermore, if, in the case of a <a>scroll container</a> box,
the resulting position of a first (last) baseline
is past a box's end (start) border edge,
its position is clamped to that border edge.
Expand Down
4 changes: 2 additions & 2 deletions css-flexbox-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -905,9 +905,9 @@ Automatic Minimum Size of Flex Items</h3>

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

In general, the <a>content-based minimum size</a> of a <a>flex item</a>
is the smaller of its <a>content size suggestion</a> and its <a>specified size suggestion</a>.
Expand Down
2 changes: 1 addition & 1 deletion css-grid-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ Automatic Minimum Size of Grid Items</h3>

To provide a more reasonable default <a>minimum size</a> for <a>grid items</a>,
the used value of an <a>automatic minimum size</a> in a given axis
on a <a>grid item</a> whose 'overflow' is ''overflow/visible'' in that same axis
on a <a>grid item</a> that is not a <a>scroll container</a>
and that spans at least one <a>track</a> in that axis
whose <a>min track sizing function</a> is ''grid-template-rows/auto''
is a <dfn>content-based minimum size</dfn>;
Expand Down
4 changes: 2 additions & 2 deletions css-transforms-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ Grouping property values {#grouping-property-values}

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'':

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

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

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


Expand Down
4 changes: 2 additions & 2 deletions cssom-view-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ An element <var>body</var> (which will be <a>the HTML <code>body</code> element<
<dfn>potentially scrollable</dfn> if all of the following conditions are true:

* <var>body</var> has an associated <a>CSS layout box</a>.
* <var>body</var>'s <a>parent element</a>'s computed value of the 'overflow-x' or 'overflow-y' properties is not ''overflow/visible''.
* <var>body</var>'s computed value of the 'overflow-x' or 'overflow-y' properties is not ''overflow/visible''.
* <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''.
* <var>body</var>'s computed value of the 'overflow-x' or 'overflow-y' properties is neither ''overflow/visible'' nor ''overflow/clip''.

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