Skip to content

Commit

Permalink
[css-contain] columns and grid affect size-contained elements
Browse files Browse the repository at this point in the history
Closes #2804
  • Loading branch information
frivoal committed Jul 9, 2018
1 parent ec5e7c9 commit cccc036
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
9 changes: 9 additions & 0 deletions css-contain-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:css2; type:dfn; text:stacking context
spec:css2; type:property; text:content
spec:css-display-3; type:property; text:display
spec:css2; type:property; text:counter-increment
spec:css-ui-3; type:property; text:text-overflow
spec:css-grid-1; type:property; text:grid
</pre>
<h2 id='intro'>
Introduction</h2>
Expand Down Expand Up @@ -187,6 +189,12 @@ Size Containment</h3>
1. When laying out the containing element,
it must be treated as having no contents.

Note: Even when the element's [=sizing properties=] are ''height/auto''
this does not necessarily make the element zero-sized:
properties set on the element itself,
such as the 'columns' property or the 'grid' property,
continue to be taken into account.

After layout of the element is complete,
its contents must then be laid out into the containing element's resolved size.

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

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

<h3 id="2017-08-08-changes">Changes from the
<a href="https://www.w3.org/TR/2017/CR-css-contain-1-20170808/">Candidate Recommendation of 8 August 2017</a></h3>
Expand Down
10 changes: 10 additions & 0 deletions css-contain-1/issues-2018-cr.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ <h1>CSS Contain Level 1 Disposition of Comments for 2018-05-24 CR</h1>
Response: <a href='https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-395256815'>https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-395256815</a>
Closed: Accepted
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>
<pre class='a' id='issue-2'>
Issue 2. <a href='#issue-2'>#</a>
Summary: specified column/row sizes on grid containers should contribute to contain:size
From: Morgan Rae Reschenberg
Comment: <a href='https://github.com/w3c/csswg-drafts/issues/2804'>https://github.com/w3c/csswg-drafts/issues/2804</a>
Response: <a href='https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399291965'>https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399291965</a>
Comment: <a href='https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399585146'>https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399585146</a>
Response: <a href='https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-400243568'>https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-400243568</a>
Closed: Accepted / Editorial
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>
<script>
(function () {
var sheet = document.styleSheets[0];
Expand Down
12 changes: 11 additions & 1 deletion css-contain-1/issues-2018-cr.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,15 @@ From: Morgan Rae Reschenberg
Comment: https://github.com/w3c/csswg-drafts/issues/2746
Comment: https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-395242022
Response: https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-395256815
Closed: Accepted
Closed: Accepted
Resolved: https://github.com/w3c/csswg-drafts/issues/2746#issuecomment-397009331
----
Issue 2.
Summary: specified column/row sizes on grid containers should contribute to contain:size
From: Morgan Rae Reschenberg
Comment: https://github.com/w3c/csswg-drafts/issues/2804
Response: https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399291965
Comment: https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-399585146
Response: https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-400243568
Closed: Accepted / Editorial
Resolved: https://github.com/w3c/csswg-drafts/issues/2804#issuecomment-402574020

0 comments on commit cccc036

Please sign in to comment.