Skip to content

Commit 8f5f683

Browse files
dbaronfantasai
authored andcommitted
Audit specifications for correct handling of overflow:clip.
This set of changes is the result of auditing all specification Overview.bs other than CSS2 and css-overflow-* for correct handling of overflow:clip, since many specifications have historically referenced concepts like "overflow values other than visible". It is related to w3c#6212, but doesn't actually fix it, because it's really only a bug in CSS2.
1 parent 9cd50b4 commit 8f5f683

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

css-backgrounds-3/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ a comma-separated list of <attachment> keywords where
438438
with respect to the <a href="https://www.w3.org/TR/CSS2/page.html#page-box">page box</a>
439439
and therefore replicated on every page.
440440
<span class="note">Note that there is only one viewport per view.
441-
Even if an element has a scrolling mechanism (see the 'overflow'
442-
property [[!CSS2]]), a ''fixed'' background doesn't move with the
441+
Even if an element is a <a>scroll container</a>,
442+
a ''fixed'' background doesn't move with the
443443
element.</span>
444444
<dt><dfn>local</dfn></dt>
445445
<dd>The background is fixed with regard to the element's contents:

css-tables-3/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1952,7 +1952,7 @@ spec:css-sizing-3; type:property; text:box-sizing
19521952
descendants of table cells whose height depends on percentages of their parent cell' height
19531953
<a href="#appropriateness-of-child-percentage-resolution">(see section below)</a>
19541954
are considered to have an auto height
1955-
if they have 'overflow' set to <code>visible</code> or <code>hidden</code>
1955+
if they have 'overflow' set to ''overflow/visible'', ''overflow/clip'', or ''overflow/hidden''
19561956
or if they are replaced elements,
19571957
and a 0px height if they have not.
19581958
<a href="https://jsfiddle.net/0e12ve9b/">Testcase</a>

css-ui-3/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ and if so, along which axis/axes.
528528
Name: resize
529529
Value: none | both | horizontal | vertical
530530
Initial: none
531-
Applies to: elements with 'overflow' other than visible,
531+
Applies to: elements that are <a>scroll containers</a>
532532
and optionally replaced elements such as images, videos, and iframes
533533
Inherited: no
534534
Percentages: N/A
@@ -566,8 +566,7 @@ The resizing mechanism allows the user
566566
to determine the size of the element.
567567

568568
The 'resize' property applies to elements
569-
whose computed 'overflow' value
570-
is something other than ''visible''.
569+
that are <a>scroll containers</a>.
571570
UAs may also apply it,
572571
regardless of the value of the 'overflow' property,
573572
to:
@@ -664,6 +663,7 @@ its <a>end</a> line box edge
664663
in the inline progression direction of its block container element ("the block")
665664
that has 'overflow'
666665
other than ''visible''.
666+
<!-- REVIEW: I *think* this should not include ''overflow/clip'' -->
667667

668668
Text can overflow for example when it is prevented from wrapping
669669
(e.g. due to <code class="lang-css">white-space: nowrap</code>

css-ui-4/Overview.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ and if so, along which axis/axes.
475475
Name: resize
476476
Value: none | both | horizontal | vertical | block | inline
477477
Initial: none
478-
Applies to: elements with 'overflow' other than visible,
478+
Applies to: elements that are <a>scroll containers</a>
479479
and optionally replaced elements such as images, videos, and iframes
480480
Inherited: no
481481
Percentages: N/A
@@ -525,8 +525,7 @@ The resizing mechanism allows the user
525525
to determine the size of the element.
526526

527527
The 'resize' property applies to elements
528-
whose computed 'overflow' value
529-
is something other than ''overflow/visible''.
528+
that are <a>scroll containers</a>.
530529
UAs may also apply it,
531530
regardless of the value of the 'overflow' property,
532531
to:

0 commit comments

Comments
 (0)