Skip to content

Commit f3dc11e

Browse files
frivoaltabatkins
authored andcommitted
[css-multicol][css-display][css-contain] Becomes a formatting context (#1179)
* [css-contain][css-display] Move the definition of becoming a formatting context * [css-multicol] spanners become a formatting context, not always a BFC Closes #1071
1 parent 9ca2d09 commit f3dc11e

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

css-contain/Overview.bs

-9
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,6 @@ Paint Containment</h3>
320320
3. Because they are guaranteed to be stacking contexts,
321321
scrolling elements can be painted into a single GPU layer.
322322

323-
<h2 id="becoming-formatting-context">Becoming a formatting context</h2>
324-
325-
When required by <a>layout containment</a> and <a>paint containment</a>,
326-
an element may need to <dfn lt='become a formatting context|becomes a formatting context'>become a <a>formatting context</a></dfn>.
327-
If the element already establishes a <a>formatting context</a> of any kind,
328-
this condition is satisfied.
329-
Otherwise, it is made to establish a <a>BFC</a> by changing its <a>inner display type</a> to ''flow-root''.
330-
331-
332323
Privacy and Security Considerations {#privsec}
333324
==============================================
334325

css-display/Overview.bs

+12
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,17 @@ Run-In Layout</h2>
739739

740740
Note: This run-in model is slightly different from the one proposed in earlier revisions of [[!CSS2]].
741741

742+
<h2 id="becoming-formatting-context">Becoming a formatting context</h2>
743+
744+
In some circumstances (See [[CSS-CONTAIN-1]] or [[CSS3-MULTICOL]] for examples),
745+
an element may need to <dfn export lt='become a formatting context|becomes a formatting context|becoming a formatting context'>become a <a>formatting context</a></dfn>.
746+
If the element already establishes a <a>formatting context</a> of any kind,
747+
this condition is satisfied.
748+
Otherwise, it is made to establish a <a>BFC</a> by changing its <a>inner display type</a> to ''flow-root''.
749+
This change happens at <a>used value</a> time,
750+
and does not affect the <a>computed value</a> of the 'display' property.
751+
752+
742753
<h2 id='glossary' class=no-num>
743754
Appendix A: Glossary</h2>
744755

@@ -1102,6 +1113,7 @@ Changes</h2>
11021113
<li>Clarified interaction of run-ins with out-of-flow elements and ''::first-letter''.
11031114
<li>Switched ''table-caption'' and ''table-cell'' to use ''flow-root'' as their <a>inner display type</a>, since they always form a formatting context root.
11041115
<li>Closed off remaining issues and added at-risk list.
1116+
<li>Added the definition of <a>becoming a formatting context</a>
11051117
</ul>
11061118

11071119
Changes since the <a href="https://www.w3.org/TR/2015/WD-css-display-3-20150721/">21 July 2015 Working Draft</a> include:

css-multicol/Overview.bs

+3-2
Original file line numberDiff line numberDiff line change
@@ -944,8 +944,8 @@ Spanning columns</h2>
944944
ancestor in the same block formatting context.
945945
Content in the normal flow that appears before the
946946
element is automatically balanced across all columns before the
947-
element appears. The element establishes a new block formatting
948-
context.
947+
element appears.
948+
The element <a>becomes a formatting context</a>.
949949

950950
Note: The element establishing a formatting content does not
951951
depend of whether the element is a descendent of a multicol or not.
@@ -1724,6 +1724,7 @@ This appendix describes changes from the
17241724
<ul>
17251725
<li>TBD
17261726
<li>Clarify that column-span causes the element to become a formatting context even if it is not in a multicol
1727+
<li>Column spanners do not always establish a <em>block</em> formatting context, but instead <a>become a formatting context</a>.
17271728
</ul>
17281729

17291730
<h2 class=no-num id=acknowledgments>

0 commit comments

Comments
 (0)