Skip to content

Commit ff375d2

Browse files
authored
Merge pull request w3c#3090 from xfq/css-box-3
Update refs to the box model
2 parents 63fc7d8 + d5e65f4 commit ff375d2

File tree

9 files changed

+91
-110
lines changed

9 files changed

+91
-110
lines changed

css-backgrounds-3/Overview.bs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ the 'color' property. The fact that the
18041804
<tr>
18051805
<th>Percentages:
18061806
<td>Refer to corresponding dimension of the
1807-
<a href="https://www.w3.org/TR/CSS2/box.html#box-dimensions">border box</a>.
1807+
<a>border box</a>.
18081808
<tr>
18091809
<th>Computed value:
18101810
<td>two absolute <<length>> or percentages
@@ -1832,7 +1832,7 @@ the 'color' property. The fact that the
18321832
<tr>
18331833
<th>Percentages:
18341834
<td>Refer to corresponding dimension of the
1835-
<a href="https://www.w3.org/TR/CSS2/box.html#box-dimensions">border box</a>.
1835+
<a>border box</a>.
18361836
<tr>
18371837
<th>Computed value:
18381838
<td>see individual properties

css-break-3/Overview.bs

+1-5
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ Fragmentation Model and Terminology</h2>
114114
A box in continuous flow always consists of only one fragment.
115115
A box in a fragmented flow consists of one or more fragments.
116116
Each fragment has its own share of the box’s border, padding, and margin,
117-
and therefore has its own
118-
<a href="https://www.w3.org/TR/CSS2/box.html#box-padding-area">padding area</a>,
119-
<a href="https://www.w3.org/TR/CSS2/box.html#box-border-area">border area</a>,
120-
and
121-
<a href="https://www.w3.org/TR/CSS2/box.html#box-margin-area">margin area</a>.
117+
and therefore has its own <a>padding area</a>, <a>border area</a>, and <a>margin area</a>.
122118
(See 'box-decoration-break', which controls how these are affected by fragmentation.)
123119
<dt><dfn>remaining fragmentainer extent</dfn></dt>
124120
<dd>

css-exclusions-1/Overview.bs

+2-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Terminology</h2>
6262
<dd>
6363
The area used for excluding inline flow content around an exclusion box. The
6464
<span>exclusion area</span> is equivalent to the
65-
<a href="https://www.w3.org/TR/CSS2/box.html#box-dimensions">border box</a>
65+
<a>border box</a>
6666
for an exclusion box.
6767

6868
<p class="note">
@@ -88,8 +88,7 @@ Terminology</h2>
8888

8989
<dt><dfn>Content area</dfn>
9090
<dd>
91-
The <a href="https://www.w3.org/TR/CSS2/box.html#box-dimensions">content area</a>
92-
is normally used for layout of the inline flow content of a box.
91+
The <a>content area</a> is normally used for layout of the inline flow content of a box.
9392

9493
<dt><dfn>Wrapping area</dfn>
9594
<dd>

css-page-3/Overview.bs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1035,9 +1035,7 @@ Page-Margin Box Layout Terminology</h4>
10351035
of the left and right page-margin boxes.
10361036

10371037
<dt><dfn>outer width</dfn>
1038-
<dd>The width of the
1039-
<a href="https://www.w3.org/TR/CSS21/box.html#outer-edge">outer edge</a>,
1040-
as defined in [[!CSS21]].
1038+
<dd>The width of the <a>outer edge</a>, as defined in [[!CSS-BOX-3]].
10411039

10421040
<dt><dfn>min-content width</dfn>
10431041
<dd>Whichever of <a spec=css-sizing>min-content block size</a>

css-regions-1/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ The Region interface</h3>
12691269
<dd>
12701270
The region's flow fragment content
12711271
fits into the region's
1272-
<a href="https://www.w3.org/TR/CSS21/box.html#box-dimensions">content box</a>.
1272+
<a>content box</a>.
12731273
If the region is the <a>last usable region</a>
12741274
in the <a>region chain</a>,
12751275
it means that the content

css-shapes-1/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Terminology</h3>
114114
to determine where content flows.
115115
By default,
116116
the <a>float area</a> is the float element's
117-
<a href="https://www.w3.org/TR/CSS2/box.html#box-dimensions">margin box</a>
117+
<a>margin box</a>
118118
(note this can be different than
119119
the <a>float area</a> produced
120120
by the ''margin-box'' value,

css-shapes-2/Overview.bs

+16-16
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Terminology</h2>
6666
around an exclusion box.
6767
The <span>exclusion area</span>
6868
is equivalent to the
69-
<a href="https://www.w3.org/TR/CSS2/box.html#box-dimensions">border box</a>
69+
<a>border box</a>
7070
for an exclusion box.
7171
This specification's 'shape-outside' property
7272
can be used to define arbitrary,
@@ -84,14 +84,14 @@ Terminology</h2>
8484
By default,
8585
the float area is
8686
the float element's
87-
<a href="https://www.w3.org/TR/CSS2/box.html#box-dimensions">margin box</a>.
87+
<a>margin box</a>.
8888
This specification's 'shape-outside' property
8989
can be used to define arbitrary,
9090
non-rectangular float areas.
9191

9292
<dfn>Content area</dfn>
9393

94-
The <a href="https://www.w3.org/TR/CSS2/box.html#box-dimensions">content area</a>
94+
The <a>content area</a>
9595
is normally used for layout of the inline flow content of a box.
9696

9797

@@ -143,14 +143,14 @@ Supported Shapes</h3>
143143
or ''evenodd''.
144144
Default value when omitted is ''nonzero''.</li>
145145
<li>
146-
The <string> represents an
147-
<a href="https://www.w3.org/TR/SVG11/paths.html#PathData">SVG Path data string</a>.
148-
The path data string must be conform
149-
to the grammar and parsing rules of SVG 1.1.
150-
The initial position is defined
151-
by the first “move to” argument
152-
in the path string.
153-
For the initial direction follow SVG 1.1.
146+
The <string> represents an
147+
<a href="https://www.w3.org/TR/SVG11/paths.html#PathData">SVG Path data string</a>.
148+
The path data string must be conform
149+
to the grammar and parsing rules of SVG 1.1.
150+
The initial position is defined
151+
by the first “move to” argument
152+
in the path string.
153+
For the initial direction follow SVG 1.1.
154154
</li>
155155
</ul>
156156
</dd>
@@ -339,8 +339,8 @@ The 'shape-inside' Property</h4>
339339
<dl>
340340
<dt><dfn for=shape-inside>''outside-shape''</dfn></dt>
341341
<dd>
342-
The shape is computed based on
343-
the shape defined by the shape-outside
342+
The shape is computed based on
343+
the shape defined by the shape-outside
344344
and shape-margin properties.
345345
</dd>
346346
</dl>
@@ -391,8 +391,8 @@ The 'shape-inside' Property</h4>
391391
by 'shape-inside' and 'shape-padding'
392392
(as well as any other exclusion areas
393393
in the element's wrapping context).
394-
In other words,
395-
overflow continues outside
394+
In other words,
395+
overflow continues outside
396396
the rectangular bounds of the element.</p>
397397

398398
<div class='figure'>
@@ -408,7 +408,7 @@ The 'shape-inside' Property</h4>
408408
</p>
409409
</div>
410410

411-
Issue: improve the illustration above,
411+
Issue: improve the illustration above,
412412
using text to show overflow instead of greeked boxes.
413413

414414
When a shape-inside has a definite size

css-ui-3/Overview.bs

+67-67
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,14 @@ this specification links directly to these terms where relevant.
142142

143143
<h3 id="box-sizing" caniuse="css3-boxsizing">Changing the Box Model: the 'box-sizing' property</h3>
144144

145-
<pre class="propdef">
146-
Name: box-sizing
145+
<pre class="propdef">
146+
Name: box-sizing
147147
Value: content-box | border-box
148-
Initial: content-box
149-
Applies to: all elements that accept width or height
150-
Inherited: no
151-
Percentages: N/A
152-
Computed value: specified value
148+
Initial: content-box
149+
Applies to: all elements that accept width or height
150+
Inherited: no
151+
Percentages: N/A
152+
Computed value: specified value
153153
</pre>
154154

155155
<dl dfn-type=value dfn-for=box-sizing>
@@ -292,55 +292,55 @@ The rendering of applying transforms to outlines is left explicitly undefined in
292292

293293
<h3 id="outline">Outlines Shorthand: the 'outline' property</h3>
294294

295-
<pre class="propdef">
296-
Name: outline
295+
<pre class="propdef">
296+
Name: outline
297297
Value: [ <<'outline-color'>> || <<'outline-style'>> || <<'outline-width'>> ]
298-
Initial: see individual properties
299-
Applies to: all elements
300-
Inherited: no
301-
Percentages: N/A
302-
Computed value: see individual properties
303-
Animation type: see individual properties
298+
Initial: see individual properties
299+
Applies to: all elements
300+
Inherited: no
301+
Percentages: N/A
302+
Computed value: see individual properties
303+
Animation type: see individual properties
304304
</pre>
305305

306306
<h3 id="outline-width">Outline Thickness: the 'outline-width' property</h3>
307307

308-
<pre class="propdef">
309-
Name: outline-width
308+
<pre class="propdef">
309+
Name: outline-width
310310
Value: <<line-width>>
311-
Initial: medium
312-
Applies to: all elements
313-
Inherited: no
314-
Percentages: N/A
311+
Initial: medium
312+
Applies to: all elements
313+
Inherited: no
314+
Percentages: N/A
315315
Computed value: absolute length; ''0'' if the outline style is ''border-style/none''.
316316
Animation type: <a href="https://drafts.csswg.org/css3-transitions/#animtype-length">length</a>
317317
</pre>
318318

319319
<h3 id="outline-style">Outline Patterns: the 'outline-style' property</h3>
320320

321-
<pre class="propdef">
322-
Name: outline-style
323-
Value: auto | <'border-style'>
324-
Initial: none
325-
Applies to: all elements
326-
Inherited: no
327-
Percentages: N/A
321+
<pre class="propdef">
322+
Name: outline-style
323+
Value: auto | <'border-style'>
324+
Initial: none
325+
Applies to: all elements
326+
Inherited: no
327+
Percentages: N/A
328328
Computed value: as specified
329329
</pre>
330330

331331
<h3 id="outline-color">Outline Colors: the 'outline-color' property</h3>
332332

333-
<pre class="propdef">
334-
Name: outline-color
335-
Value: <<color>> | invert
336-
Initial: invert
337-
Applies to: all elements
338-
Inherited: no
339-
Percentages: N/A
333+
<pre class="propdef">
334+
Name: outline-color
335+
Value: <<color>> | invert
336+
Initial: invert
337+
Applies to: all elements
338+
Inherited: no
339+
Percentages: N/A
340340
Computed value: The computed value for ''outline-color/invert'' is ''outline-color/invert'';
341341
the computed value of ''outline-color/currentColor'' is ''outline-color/currentColor'' (See [[CSS-COLOR-3/#currentColor]]);
342342
see the 'color' property for other <<color>> values.
343-
Animation Type: <a href="https://drafts.csswg.org/css3-transitions/#animtype-color">color</a>
343+
Animation Type: <a href="https://drafts.csswg.org/css3-transitions/#animtype-color">color</a>
344344
</pre>
345345

346346
The outline created with the outline properties is drawn "over" a box,
@@ -460,15 +460,15 @@ it may well overlap other elements on the page.
460460
By default, the outline is drawn starting just outside the <a>border edge</a>.
461461
However, it is possible to offset the outline and draw it beyond the <a>border edge</a>.
462462

463-
<pre class="propdef">
464-
Name: outline-offset
465-
Value: <<length>>
466-
Initial: 0
467-
Applies to: all elements
468-
Inherited: no
469-
Percentages: N/A
470-
Computed value: <<length>> value in absolute units (px or physical).
471-
Animation Type: <a href="https://drafts.csswg.org/css3-transitions/#animtype-length">length</a>
463+
<pre class="propdef">
464+
Name: outline-offset
465+
Value: <<length>>
466+
Initial: 0
467+
Applies to: all elements
468+
Inherited: no
469+
Percentages: N/A
470+
Computed value: <<length>> value in absolute units (px or physical).
471+
Animation Type: <a href="https://drafts.csswg.org/css3-transitions/#animtype-length">length</a>
472472
</pre>
473473

474474
If the computed value of 'outline-offset'
@@ -513,14 +513,14 @@ The 'resize' property allows the author
513513
to specify whether or not an element is resizable by the user,
514514
and if so, along which axis/axes.
515515

516-
<pre class="propdef">
517-
Name: resize
518-
Value: none | both | horizontal | vertical
519-
Initial: none
516+
<pre class="propdef">
517+
Name: resize
518+
Value: none | both | horizontal | vertical
519+
Initial: none
520520
Applies to: elements with 'overflow' other than visible,
521-
and optionally replaced elements such as images, videos, and iframes
522-
Inherited: no
523-
Percentages: N/A
521+
and optionally replaced elements such as images, videos, and iframes
522+
Inherited: no
523+
Percentages: N/A
524524
Computed value: as specified
525525
</pre>
526526

@@ -918,8 +918,8 @@ While the content is being scrolled, implementations may adjust their rendering
918918
<h3 id="pointer-interaction">Pointer interaction</h3>
919919

920920
<h4 id="cursor" caniuse="css3-cursors">Styling the Cursor: the 'cursor' property</h4>
921-
<pre class="propdef">
922-
Name: cursor
921+
<pre class="propdef">
922+
Name: cursor
923923
Value: [ [<<url>> [&lt;x&gt; &lt;y&gt;]?,]* <br>
924924
[ auto | default | none |<br>
925925
context-menu | help | pointer | progress | wait | <br>
@@ -930,12 +930,12 @@ Value: [ [<<url>> [&lt;x&gt; &lt;y&gt;]?,]* <br>
930930
col-resize | row-resize |
931931
all-scroll |<br>
932932
zoom-in | zoom-out <br>
933-
] ]
934-
Initial: auto
935-
Applies to: all elements
936-
Inherited: yes
937-
Percentages: N/A
938-
Computed value: as specified, except with any relative URLs converted to absolute
933+
] ]
934+
Initial: auto
935+
Applies to: all elements
936+
Inherited: yes
937+
Percentages: N/A
938+
Computed value: as specified, except with any relative URLs converted to absolute
939939
</pre>
940940

941941
This property specifies the type of cursor to be displayed for the pointing device
@@ -1238,17 +1238,17 @@ boxes are generated for it and its cursor is used for the canvas.
12381238
<h3 id="insertion-caret">Insertion caret</h3>
12391239

12401240
<h4 id="caret-color" caniuse="css-caret-color">Coloring the Insertion Caret: the 'caret-color' property</h4>
1241-
<pre class="propdef">
1242-
Name: caret-color
1243-
Value: auto | <<color>>
1244-
Initial: auto
1241+
<pre class="propdef">
1242+
Name: caret-color
1243+
Value: auto | <<color>>
1244+
Initial: auto
12451245
Applies to: all elements
1246-
Inherited: yes
1247-
Percentages: N/A
1246+
Inherited: yes
1247+
Percentages: N/A
12481248
Computed value: The computed value for ''caret-color/auto'' is ''caret-color/auto'';
12491249
the computed value of ''caret-color/currentColor'' is ''cart-color/currentColor'' (See [[CSS-COLOR-3/#currentColor]]);
12501250
see the 'color' property for other <<color>> values.
1251-
Animation Type: <a href="https://drafts.csswg.org/css3-transitions/#animtype-color">color</a>
1251+
Animation Type: <a href="https://drafts.csswg.org/css3-transitions/#animtype-color">color</a>
12521252
</pre>
12531253

12541254
<dl>

css-ui-4/Overview.bs

-12
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ Coding style convention in this file:
1414
* Indent the content of <div class=note> and <div class=example>
1515
-->
1616

17-
<pre class="anchors">
18-
spec: css2; urlPrefix: https://drafts.csswg.org/css2/
19-
urlPrefix: box.html
20-
type: dfn;
21-
text: content edge;
22-
text: padding edge;
23-
</pre>
24-
2517
<pre class='metadata'>
2618
Title: CSS Basic User Interface Module Level 4
2719
ED: https://drafts.csswg.org/css-ui-4/
@@ -93,10 +85,6 @@ spec:css-backgrounds-3; type:property; text:background-image
9385
spec:css-backgrounds-3; type:property; text:border-width
9486
</pre>
9587

96-
<pre class="anchors">
97-
url: https://www.w3.org/TR/CSS21/box.html#border-edge; type: dfn; spec: CSS21; text: border edge
98-
</pre>
99-
10088
<style>
10189
.awesome-table td {padding:5px}
10290
.awesome-table {color:#000;background:#fff;margin: auto;}

0 commit comments

Comments
 (0)