Skip to content

Commit cccc036

Browse files
committed
[css-contain] columns and grid affect size-contained elements
Closes w3c#2804
1 parent ec5e7c9 commit cccc036

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

css-contain-1/Overview.bs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ spec:css2; type:dfn; text:stacking context
3333
spec:css2; type:property; text:content
3434
spec:css-display-3; type:property; text:display
3535
spec:css2; type:property; text:counter-increment
36+
spec:css-ui-3; type:property; text:text-overflow
37+
spec:css-grid-1; type:property; text:grid
3638
</pre>
3739
<h2 id='intro'>
3840
Introduction</h2>
@@ -187,6 +189,12 @@ Size Containment</h3>
187189
1. When laying out the containing element,
188190
it must be treated as having no contents.
189191

192+
Note: Even when the element's [=sizing properties=] are ''height/auto''
193+
this does not necessarily make the element zero-sized:
194+
properties set on the element itself,
195+
such as the 'columns' property or the 'grid' property,
196+
continue to be taken into account.
197+
190198
After layout of the element is complete,
191199
its contents must then be laid out into the containing element's resolved size.
192200

@@ -458,6 +466,7 @@ This appendix is <em>informative</em>.
458466
<a href="https://www.w3.org/TR/2018/CR-css-contain-1-20180524/">Candidate Recommendation of 24 May 2018</a></h3>
459467

460468
* Size containment does not apply to tables
469+
* Clarify that the columns and grid properties affect the size of size-contained elements
461470

462471
<h3 id="2017-08-08-changes">Changes from the
463472
<a href="https://www.w3.org/TR/2017/CR-css-contain-1-20170808/">Candidate Recommendation of 8 August 2017</a></h3>

css-contain-1/issues-2018-cr.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ <h1>CSS Contain Level 1 Disposition of Comments for 2018-05-24 CR</h1>
4040
Response: <a href='https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-395256815'>https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-395256815</a>
4141
Closed: Accepted
4242
Resolved: <a href='https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-397009331'>https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-397009331</a></pre>
43+
<pre class='a' id='issue-2'>
44+
Issue 2. <a href='#issue-2'>#</a>
45+
Summary: specified column/row sizes on grid containers should contribute to contain:size
46+
From: Morgan Rae Reschenberg
47+
Comment: <a href='https://github.com/w3c/csswg-drafts/issues/2804'>https://github.com/w3c/csswg-drafts/issues/2804</a>
48+
Response: <a href='https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399291965'>https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399291965</a>
49+
Comment: <a href='https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399585146'>https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399585146</a>
50+
Response: <a href='https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-400243568'>https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-400243568</a>
51+
Closed: Accepted / Editorial
52+
Resolved: <a href='https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-402574020'>https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-402574020</a></pre>
4353
<script>
4454
(function () {
4555
var sheet = document.styleSheets[0];

css-contain-1/issues-2018-cr.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,15 @@ From: Morgan Rae Reschenberg
88
Comment: https://github.com/w3c/csswg-drafts/issues/2746
99
Comment: https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-395242022
1010
Response: https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-395256815
11-
Closed: Accepted
11+
Closed: Accepted
1212
Resolved: https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-397009331
13+
----
14+
Issue 2.
15+
Summary: specified column/row sizes on grid containers should contribute to contain:size
16+
From: Morgan Rae Reschenberg
17+
Comment: https://github.com/w3c/csswg-drafts/issues/2804
18+
Response: https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399291965
19+
Comment: https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399585146
20+
Response: https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-400243568
21+
Closed: Accepted / Editorial
22+
Resolved: https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-402574020

0 commit comments

Comments
 (0)