You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/css3-box.txt
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,8 @@ A better approach is to formalize the use of properties on boxes. Current think
28
28
* for principal boxes, the same is true; property values come straight from the element
29
29
* for non-principal boxes, the initial value is used as the computed, used and actual value. (This assumes that a property's initial value is always a valid used and actual value, and that it doesn't get transformed when moving from computed to used or from used to actual... which I /think/ is true but is not actually specified anywhere.)
30
30
31
+
NOTE: check out css3-page where properties are assigned from page context and margin context to boxes; need to align
32
+
31
33
32
34
=====Containing blocks=====
33
35
@@ -102,11 +104,9 @@ Editorially, it's be helpful to have a name for "fix-up boxes" introduced into t
102
104
103
105
=====Flow roots, flows and formatting contexts=====
104
106
105
-
Terminology crisis!
106
-
107
107
CSS has "normal flow", "in-flow" and "out of flow", but never really explains what the/a normal flow is.
108
108
109
-
===Relevant quotes===
109
+
===Relevant quotes for flow===
110
110
111
111
From CSS21:
112
112
* "normal flow includes block formatting of block-level boxes, inline formatting of inline-level boxes"
@@ -117,8 +117,25 @@ From CSS21:
117
117
* "User Agents must apply these properties to block-level elements in the normal flow of the root element" ('page-break-*')
118
118
119
119
120
+
[Note: css3-page 9.4 (Allowed page breaks) says: "In the normal flow, page breaks may occur at the following places". What does this mean? Does this indicate that a nested flow root may be fragmented if its its in-flow content has page break opportunities as specified? Or is it trying to say that page break opportunities only exist in the outermost flow (whatever that actually is)?]
121
+
120
122
[Note: according to CSS21 9.3, the root element is out of flow. Is this correct? Surely it participates in the block formatting context established by the initial containing block.]
121
123
124
+
===Relevant quotes for formatting contexts===
125
+
126
+
From flexbox:
127
+
* "A flex container establishes a new flex formatting context for its contents. This is the same as establishing a block formatting context, except that flex layout is used instead of block layout: floats do not intrude into the flex container, and the flex container's margins do not collapse with the margins of its contents."
128
+
129
+
From multicol:
130
+
* "A multi-column element establishes a new block formatting context, as per CSS 2.1 section 9.4.1. Example: A top margin set on the first child element of a multicol element will not collapse with the margins of the multicol element."
131
+
* The 'all' value of 'column-span': "The element spans across all columns of the nearest multicol ancestor in the same block formatting context. [...] The element establishes a new block formatting context."
132
+
133
+
From exclusions:
134
+
* "An exclusion element [block-level element which is not a float and generates an exclusion box (ie ‘wrap-flow’ property's computed value is not ‘auto’)] establishes a new block formatting context"
135
+
136
+
From writing-modes:
137
+
* "If an element has a different block flow direction than its containing block [..., and] the element is a block container, then it establishes a new block formatting context."
0 commit comments