@@ -117,11 +117,21 @@ The CSS Box Model {#box-model}
117
117
<p class="caption"> The various areas and edges of a typical box.
118
118
</div>
119
119
120
+ The background of the content, padding, and border areas of a box
121
+ is specified by its 'background' properties.
122
+ The border area can additionally be painted with a border style
123
+ using the 'border' properties.
124
+ Margins are always transparent.
125
+ See [[css-backgrounds-3]] .
126
+
120
127
The margin, border, and padding can be broken down into
121
128
top, right, bottom, and left segments,
122
129
each of which can be controlled independently
123
130
by its corresponding property.
124
131
132
+ Boxes and Edges {#box-edges}
133
+ ---------------
134
+
125
135
The perimeter of each of the four areas
126
136
(content, padding, border, and margin)
127
137
is called an <dfn export lt="box edge | edge" for="box">edge</dfn> ,
@@ -178,26 +188,22 @@ The CSS Box Model {#box-model}
178
188
and <a>margin areas</a> .
179
189
</dl>
180
190
181
- The background of the content, padding, and border areas of a box
182
- is specified by its 'background' properties.
183
- The border area can additionally be painted with a border style
184
- using the 'border' properties.
185
- Margins are always transparent.
186
- See [[css-backgrounds-3]] .
191
+ Fragmentation {#fragmentation}
192
+ -------------
187
193
188
- When a box <a href="https://www.w3.org/TR/css-break-3 /#fragmentation-model">fragments</a> --
194
+ When a box <a href="https://www.w3.org/TR/css-break-4 /#fragmentation-model">fragments</a> --
189
195
is broken, as across lines or across pages, into separate <a>box fragments</a> --
190
196
each of its boxes
191
197
(<a>content box</a> , <a>padding box</a> , <a>border box</a> , <a>margin box</a> )
192
198
also fragments.
193
199
How the content/padding/border/margin areas react to fragmentation
194
- is specified in [[css-break-3 ]]
200
+ is specified in [[css-break-4 ]]
195
201
and controlled by the 'box-decoration-break' property.
196
202
197
203
Box-edge Keywords {#keywords}
198
204
-----------------
199
205
200
- The following <dfn noexport>< box></dfn> CSS keywords are defined for use
206
+ The following <dfn><< box> ></dfn> CSS keywords are defined for use
201
207
in properties (such as 'transform-box' and 'background-clip' )
202
208
that need to refer to various box edges:
203
209
@@ -250,7 +256,9 @@ Box-edge Keywords {#keywords}
250
256
See https://github.com/w3c/csswg-drafts/issues/4662 -->
251
257
</dl>
252
258
253
- For convenience, the following value types are defined:
259
+ For convenience, the following value types are defined
260
+ to represents commonly used subsets of <<box>> :
261
+
254
262
<pre class="prod">
255
263
<dfn><<visual-box>></dfn> = content-box | padding-box | border-box
256
264
<dfn><<layout-box>></dfn> = <<visual-box>> | margin-box
@@ -278,7 +286,7 @@ Margins {#margins}
278
286
See <a href="https://www.w3.org/TR/CSS2/box.html#collapsing-margins">CSS2§8.3.1 Collapsing Margins</a>
279
287
for details.
280
288
Also, margins adjoining a <a>fragmentation break</a> are sometimes truncated.
281
- See [[css-break-3 #break-margins]] for details.
289
+ See [[css-break-4 #break-margins]] for details.
282
290
283
291
Page-relative (Physical) Margin Properties: the 'margin-top' , 'margin-right' , 'margin-bottom' , and 'margin-left' properties {#margin-physical}
284
292
-------------------------------------------
0 commit comments