@@ -48,10 +48,19 @@ Introduction {#intro}
48
48
'border' and its longhands,
49
49
and 'margin' and its longhands--
50
50
define the sizes of these other areas.
51
- Margins and padding are defined in this module;
52
- borders are defined in [[css-backgrounds-3]] .
53
51
54
- Note: This module <a href="https://www.w3.org/TR/2018/WD-css3-box-20180731/">originally contained</a>
52
+ [=Margins=] and [=padding=] are defined in this module.
53
+ [=Borders=] are similarly defined in [[css-backgrounds-3]] .
54
+
55
+ Note: This module only defines the [=physical=] per-side [=longhand=] properties.
56
+ Additional, [=flow-relative=] [=longhand=] properties
57
+ are defined in [[css-logical-1]] .
58
+ Note that both sets of [=longhand=] properties control the same [=margins=] /[=padding=] :
59
+ they are just different ways of indexing each side.
60
+
61
+ <details class="note">
62
+ <summary> History of CSS Box module and the definition of Block Layout</summary>
63
+ <p> This module <a href="https://www.w3.org/TR/2018/WD-css3-box-20180731/">originally contained</a>
55
64
the CSS Level 3 specification prose relating to
56
65
box generation (now defined in [[css-display-3]] ),
57
66
the box model (defined here),
@@ -72,6 +81,7 @@ Introduction {#intro}
72
81
and <a href="https://www.w3.org/TR/css-tables/">Table Layout</a> ,
73
82
in addition to Block Layout)
74
83
which each deserve their own parallel module.
84
+ </details>
75
85
76
86
<h3 id="values">
77
87
Value Definitions</h3>
@@ -270,13 +280,11 @@ Margins {#margins}
270
280
The 'margin' <a>shorthand property</a>
271
281
sets the margin for all four sides
272
282
while the margin <a>longhand properties</a> only set their respective side.
273
- This specification defines the <a>physical</a> 'margin' <a>longhands</a> ;
274
- [[css-logical-1#margin-properties]] additionally
275
- defines <a>flow-relative</a> 'margin' <a>longhands</a> .
276
- Both sets of properties control the same set of margins:
277
- they are just different ways of indexing each side.
283
+ This section defines the <a>physical</a> 'margin' <a>longhands</a> .
284
+ (Additional <a>flow-relative</a> 'margin' <a>longhands</a>
285
+ are defined in [[css-logical-1]] .)
278
286
279
- Note: Adjoining margins in <a>block layout</a> <em> collapse</em> .
287
+ Note: Adjoining margins in <a>block layout</a> can <em> collapse</em> .
280
288
See <a href="https://www.w3.org/TR/CSS2/box.html#collapsing-margins">CSS2§8.3.1 Collapsing Margins</a>
281
289
for details.
282
290
Also, margins adjoining a <a>fragmentation break</a> are sometimes truncated.
@@ -363,11 +371,9 @@ Padding {#paddings}
363
371
The 'padding' <a>shorthand property</a>
364
372
sets the padding for all four sides
365
373
while the padding <a>longhand properties</a> only set their respective side.
366
- This specification defines the <a>physical</a> 'padding' <a>longhands</a> ;
367
- [[css-logical-1#padding-properties]] additionally
368
- defines <a>flow-relative</a> 'padding' <a>longhands</a> .
369
- Both sets of properties control the same set of padding:
370
- they are just different ways of indexing each side.
374
+ This section defines the <a>physical</a> 'padding' <a>longhands</a> .
375
+ (Additional <a>flow-relative</a> 'padding' <a>longhands</a>
376
+ are defined in [[css-logical-1]] .)
371
377
372
378
Note: Backgrounds specified on the box
373
379
are by default laid out and painted within the padding edges.
@@ -451,12 +457,10 @@ Borders {#borders}
451
457
The <dfn export>border properties</dfn> specify the thickness
452
458
of the <a>border area</a> of a box,
453
459
as well as its drawing style and color.
454
- See [[css-backgrounds-3#borders]] for the definition
455
- of the physical variants of these properties;
456
- [[css-logical-1#border-properties]] additionally
457
- defines <a>flow-relative</a> border <a>longhands</a> .
458
- Both sets of properties control the same set of borders:
459
- they are just different ways of indexing each side.
460
+ See [[css-backgrounds-3]] for the definition of these properties,
461
+ including their [=physical=] longhands.
462
+ (Additional [=flow-relative=] border longhands
463
+ are defined in [[css-logical-1]] .)
460
464
461
465
Changes Since CSS Level 2 {#changes}
462
466
=========================
0 commit comments