Skip to content

Commit 687d14d

Browse files
committed
[css-contain] Add note on size containment and table captions
Closes w3c#2952
1 parent 590e69d commit 687d14d

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

css-contain-1/Overview.bs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,19 @@ Size Containment</h3>
188188
size containment has no effect.
189189
Otherwise, giving an element <dfn export>size containment</dfn> has the following effects:
190190

191+
Note: Internal table elements,
192+
which do not include table captions,
193+
are excluded,
194+
because the table layout algorithm
195+
does not allow elements to become smaller than their inflow content.
196+
Sizing a table cell as if it was empty and then layout out its content inside without changing the size
197+
is effectively an undefined operation.
198+
Manually setting the 'width' or 'height' properties to ''0''
199+
cannot make it smaller than its content.
200+
This concern does not apply to table captions,
201+
which are perfectly capable of having a fixed size
202+
that is independent of their content.
203+
191204
1. When calculating the size of the containing element,
192205
it must be treated as having no contents.
193206

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@ <h1>CSS Contain Level 1 Disposition of Comments for 2018-05-24 CR</h1>
109109
Response: <a href='https://github.com/w3c/csswg-drafts/issues/3023#issuecomment-413883793'>https://github.com/w3c/csswg-drafts/issues/3023#issuecomment-413883793</a>
110110
Closed: Accepted
111111
Resolved: <a href='https://github.com/w3c/csswg-drafts/issues/3023#issuecomment-417016569'>https://github.com/w3c/csswg-drafts/issues/3023#issuecomment-417016569</a></pre>
112+
<pre class='a' id='issue-10'>
113+
Issue 10. <a href='#issue-10'>#</a>
114+
Summary: maybe 'contain-size' shouldn't apply to display:table-caption
115+
From: David Baron
116+
Comment: <a href='https://github.com/w3c/csswg-drafts/issues/2952'>https://github.com/w3c/csswg-drafts/issues/2952</a>
117+
Response: <a href='https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-408369314'>https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-408369314</a>
118+
Closed: Rejected
119+
Resolved: <a href='https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-417018325'>https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-417018325</a>
120+
Verified: <a href='https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-417018325'>https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-417018325</a></pre>
112121
<script>
113122
(function () {
114123
var sheet = document.styleSheets[0];

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,12 @@ Comment: https://github.com/w3c/csswg-drafts/issues/3032
7979
Response: https://github.com/w3c/csswg-drafts/issues/3023#issuecomment-413883793
8080
Closed: Accepted
8181
Resolved: https://github.com/w3c/csswg-drafts/issues/3023#issuecomment-417016569
82+
----
83+
Issue 10.
84+
Summary: maybe 'contain-size' shouldn't apply to display:table-caption
85+
From: David Baron
86+
Comment: https://github.com/w3c/csswg-drafts/issues/2952
87+
Response: https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-408369314
88+
Closed: Rejected
89+
Resolved: https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-417018325
90+
Verified: https://github.com/w3c/csswg-drafts/issues/2952#issuecomment-417018325

0 commit comments

Comments
 (0)