Skip to content

Commit fddec46

Browse files
committed
[css-sizing] CSS21->CSS2
1 parent d05651c commit fddec46

3 files changed

Lines changed: 53 additions & 35 deletions

File tree

css-sizing-3/Overview.bs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ Introduction</h2>
4747
Module interactions</h3>
4848

4949
<p>This module extends the 'width', 'height', 'min-width', 'min-height', 'max-width', 'max-height', and 'column-width'
50-
features defined in [[!CSS21]] chapter 10 and in [[!CSS3COL]]
50+
features defined in [[!CSS2]] chapter 10 and in [[!CSS3COL]]
5151

5252
<h3 id="values">
5353
Values</h3>
5454

55-
This specification follows the <a href="https://www.w3.org/TR/CSS21/about.html#property-defs">CSS property definition conventions</a> from [[!CSS2]].
55+
This specification follows the <a href="https://www.w3.org/TR/CSS2/about.html#property-defs">CSS property definition conventions</a> from [[!CSS2]].
5656
Value types not defined in this specification are defined in CSS Values & Units [[!CSS-VALUES-3]].
5757
Other CSS modules may expand the definitions of these value types.
5858

@@ -85,7 +85,7 @@ Terminology</h2>
8585
a measure of text (without consideration of line-wrapping),
8686
a size of the <a>initial containing block</a>,
8787
or a <<percentage>> or other formula
88-
(such the <a href="https://www.w3.org/TR/CSS21/visudet.html#blockwidth">“stretch-fit” sizing of non-replaced blocks</a> [[CSS21]])
88+
(such the <a href="https://www.w3.org/TR/CSS2/visudet.html#blockwidth">“stretch-fit” sizing of non-replaced blocks</a> [[CSS2]])
8989
that is resolved solely against <a>definite</a> sizes.
9090

9191
Additionally, the size of the <a>containing block</a> of an absolutely positioned element is always <a>definite</a>
@@ -111,7 +111,7 @@ Terminology</h2>
111111
<!--
112112
<p>
113113
The space <a>available</a> to a box is determined by the formatting context in which it participates.
114-
In block, table, and inline formatting contexts [[!CSS21]],
114+
In block, table, and inline formatting contexts [[!CSS2]],
115115
the <a>available space</a> is infinite in the block-axis dimension.
116116
<span class="issue">What, exactly, is the available space in the inline axis??? What about other formatting models?</span>
117117
-->
@@ -128,7 +128,7 @@ Terminology</h2>
128128

129129
<p class='note'>
130130
Note: This is the formula used to calculate the ''width/auto'' widths
131-
of non-replaced blocks in normal flow in <a href="https://www.w3.org/TR/CSS21/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
131+
of non-replaced blocks in normal flow in <a href="https://www.w3.org/TR/CSS2/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
132132

133133
<dt><dfn lt="fallback|fallback size">fallback size</dfn>
134134
<dd>
@@ -150,8 +150,8 @@ Auto Box Sizes</h3>
150150
in the given axis.
151151
(See [[#extrinsic]].)
152152

153-
Note: For the <a>inline axis</a>, this is called the “available width” in <a href="https://www.w3.org/TR/CSS21/visudet.html#float-width">CSS2.1§10.3.5</a>
154-
and computed by the rules in <a href="https://www.w3.org/TR/CSS21/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
153+
Note: For the <a>inline axis</a>, this is called the “available width” in <a href="https://www.w3.org/TR/CSS2/visudet.html#float-width">CSS2.1§10.3.5</a>
154+
and computed by the rules in <a href="https://www.w3.org/TR/CSS2/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
155155

156156
: <dfn lt="max-content | max-content size">max-content size</dfn>
157157
:: A box’s “ideal” <a>size</a> in a given axis when given infinite available space.
@@ -165,8 +165,8 @@ Auto Box Sizes</h3>
165165
if <em>none</em> of the soft wrap opportunities within the box were taken.
166166
(See [[#intrinsic]].)
167167

168-
Note: This is called the “preferred width” in <a href="https://www.w3.org/TR/CSS21/visudet.html#float-width">CSS2.1§10.3.5</a>
169-
and the “maximum cell width” in <a href="https://www.w3.org/TR/CSS21/tables.html#auto-table-layout">CSS2.1§17.5.2.2</a>.
168+
Note: This is called the “preferred width” in <a href="https://www.w3.org/TR/CSS2/visudet.html#float-width">CSS2.1§10.3.5</a>
169+
and the “maximum cell width” in <a href="https://www.w3.org/TR/CSS2/tables.html#auto-table-layout">CSS2.1§17.5.2.2</a>.
170170

171171
: <dfn>max-content block size</dfn>
172172
:: The box's “ideal” <a>size</a> in the <a>block axis</a>.
@@ -185,8 +185,8 @@ Auto Box Sizes</h3>
185185
Roughly, the <a>inline size</a> that would fit around its contents
186186
if <em>all</em> soft wrap opportunities within the box were taken.
187187

188-
Note: This is called the “preferred minimum width” in <a href="https://www.w3.org/TR/CSS21/visudet.html#float-width">CSS2.1§10.3.5</a>
189-
and the “minimum content width” in <a href="https://www.w3.org/TR/CSS21/tables.html#auto-table-layout">CSS2.1§17.5.2.2</a>.
188+
Note: This is called the “preferred minimum width” in <a href="https://www.w3.org/TR/CSS2/visudet.html#float-width">CSS2.1§10.3.5</a>
189+
and the “minimum content width” in <a href="https://www.w3.org/TR/CSS2/tables.html#auto-table-layout">CSS2.1§17.5.2.2</a>.
190190

191191
: <dfn>min-content block size</dfn>
192192
:: Equivalent to the <a>max-content block size</a>.
@@ -203,7 +203,7 @@ Auto Box Sizes</h3>
203203
equal to <code>min(<a>max-content size</a>, max(<a>min-content size</a>, <a>stretch-fit size</a>))</code>.
204204
Otherwise, equal to the <a>max-content size</a> in that axis.
205205

206-
Note: This is called the “shrink-to-fit” width in <a href="https://www.w3.org/TR/CSS21/visudet.html#float-width">CSS2.1§10.3.5</a>
206+
Note: This is called the “shrink-to-fit” width in <a href="https://www.w3.org/TR/CSS2/visudet.html#float-width">CSS2.1§10.3.5</a>
207207
and <a href="https://www.w3.org/TR/css3-multicol/#pseudo-algorithm">CSS Multi-column Layout § 3.4</a>.
208208
</div>
209209

@@ -260,7 +260,7 @@ New Keywords for 'width' and 'height'</h3>
260260
as appropriate to the writing mode.
261261

262262
NOTE: This is the formula used to calculate ''width/auto'' widths
263-
for non-replaced blocks in normal flow, see <a href="https://www.w3.org/TR/CSS21/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
263+
for non-replaced blocks in normal flow, see <a href="https://www.w3.org/TR/CSS2/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
264264
It allows re-using this formula for boxes that are otherwise shrink-wrapped,
265265
like tables.
266266

@@ -306,7 +306,7 @@ New Keywords for 'width' and 'height'</h3>
306306
Note that percentages resolved against the intrinsic sizes
307307
(''width/max-content'', ''width/min-content'', ''width/fit-content'')
308308
will compute to ''width/auto'',
309-
<a href="https://www.w3.org/TR/CSS21/visudet.html#the-height-property">as defined by CSS 2.1</a>. [[!CSS21]]
309+
<a href="https://www.w3.org/TR/CSS2/visudet.html#the-height-property">as defined by CSS 2.1</a>. [[!CSS2]]
310310

311311
<h3 id='the-contain-floats-value'>
312312
Containing Floats</h3>
@@ -389,7 +389,7 @@ Intrinsic Contributions</h3>
389389
if that hypothetical float's containing block is zero-sized/infinitely-sized.
390390

391391
Note: This specification does not define how to determine these sizes.
392-
Please refer to [[CSS21]],
392+
Please refer to [[CSS2]],
393393
the relevant CSS specification for that display type,
394394
and/or existing implementations
395395
for further details.
@@ -419,7 +419,7 @@ Stretch-fit Sizing</h3>
419419

420420

421421
&hellip;less the box's <a>inline-axis</a> margins
422-
(after any <a href="https://www.w3.org/TR/CSS21/box.html#collapsing-margins">margin collapsing</a>, and treating ''margin/auto'' margins as zero),
422+
(after any <a href="https://www.w3.org/TR/CSS2/box.html#collapsing-margins">margin collapsing</a>, and treating ''margin/auto'' margins as zero),
423423
borders, and padding,
424424
flooring at zero.
425425

@@ -450,7 +450,7 @@ Stretch-fit Sizing</h3>
450450
Note: See definition of percentage
451451
<a href="https://www.w3.org/TR/CSS2/visudet.html#the-width-property"><css>width</css></a>
452452
and <a href="https://www.w3.org/TR/CSS2/visudet.html#the-height-property"><css>height</css></a>
453-
in [[CSS21]].
453+
in [[CSS2]].
454454

455455
<h2 class=no-num id="changes">
456456
Changes</h2>

css-sizing/Overview.bs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ Introduction</h2>
4848
Module interactions</h3>
4949

5050
<p>This module extends the 'width', 'height', 'min-width', 'min-height', 'max-width', 'max-height', and 'column-width'
51-
features defined in [[!CSS21]] chapter 10 and in [[!CSS3COL]]
51+
features defined in [[!CSS2]] chapter 10 and in [[!CSS3COL]]
5252

5353
<h3 id="values">
5454
Values</h3>
5555

56-
This specification follows the <a href="https://www.w3.org/TR/CSS21/about.html#property-defs">CSS property definition conventions</a> from [[!CSS2]].
56+
This specification follows the <a href="https://www.w3.org/TR/CSS2/about.html#property-defs">CSS property definition conventions</a> from [[!CSS2]].
5757
Value types not defined in this specification are defined in CSS Values & Units [[!CSS-VALUES-3]].
5858
Other CSS modules may expand the definitions of these value types.
5959

@@ -86,7 +86,7 @@ Terminology</h2>
8686
a measure of text (without consideration of line-wrapping),
8787
a size of the <a>initial containing block</a>,
8888
or a <<percentage>> or other formula
89-
(such the <a href="https://www.w3.org/TR/CSS21/visudet.html#blockwidth">“stretch-fit” sizing of non-replaced blocks</a> [[CSS21]])
89+
(such the <a href="https://www.w3.org/TR/CSS2/visudet.html#blockwidth">“stretch-fit” sizing of non-replaced blocks</a> [[CSS2]])
9090
that is resolved solely against <a>definite</a> sizes.
9191

9292
Additionally, the size of the <a>containing block</a> of an absolutely positioned element is always <a>definite</a>
@@ -111,7 +111,7 @@ Terminology</h2>
111111
<!--
112112
<p>
113113

114-
In block, table, and inline formatting contexts [[!CSS21]],
114+
In block, table, and inline formatting contexts [[!CSS2]],
115115
the <a>available space</a> is infinite in the block-axis dimension.
116116
<span class="issue">What, exactly, is the available space in the inline axis??? What about other formatting models?</span>
117117
-->
@@ -128,7 +128,7 @@ Terminology</h2>
128128

129129
<p class='note'>
130130
Note: This is the formula used to calculate the ''width/auto'' widths
131-
of non-replaced blocks in normal flow in <a href="https://www.w3.org/TR/CSS21/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
131+
of non-replaced blocks in normal flow in <a href="https://www.w3.org/TR/CSS2/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
132132

133133
<dt><dfn lt="fallback|fallback size">fallback size</dfn>
134134
<dd>
@@ -150,8 +150,8 @@ Auto Box Sizes</h3>
150150
in the given axis.
151151
(See [[#extrinsic]].)
152152

153-
Note: For the <a>inline axis</a>, this is called the “available width” in <a href="https://www.w3.org/TR/CSS21/visudet.html#float-width">CSS2.1§10.3.5</a>
154-
and computed by the rules in <a href="https://www.w3.org/TR/CSS21/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
153+
Note: For the <a>inline axis</a>, this is called the “available width” in <a href="https://www.w3.org/TR/CSS2/visudet.html#float-width">CSS2.1§10.3.5</a>
154+
and computed by the rules in <a href="https://www.w3.org/TR/CSS2/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
155155

156156
: <dfn lt="max-content | max-content size">max-content size</dfn>
157157
:: A box’s “ideal” <a>size</a> in a given axis when given infinite available space.
@@ -165,8 +165,8 @@ Auto Box Sizes</h3>
165165
if <em>none</em> of the soft wrap opportunities within the box were taken.
166166
(See [[#intrinsic]].)
167167

168-
Note: This is called the “preferred width” in <a href="https://www.w3.org/TR/CSS21/visudet.html#float-width">CSS2.1§10.3.5</a>
169-
and the “maximum cell width” in <a href="https://www.w3.org/TR/CSS21/tables.html#auto-table-layout">CSS2.1§17.5.2.2</a>.
168+
Note: This is called the “preferred width” in <a href="https://www.w3.org/TR/CSS2/visudet.html#float-width">CSS2.1§10.3.5</a>
169+
and the “maximum cell width” in <a href="https://www.w3.org/TR/CSS2/tables.html#auto-table-layout">CSS2.1§17.5.2.2</a>.
170170

171171
: <dfn>max-content block size</dfn>
172172
:: The box's “ideal” <a>size</a> in the <a>block axis</a>.
@@ -185,8 +185,8 @@ Auto Box Sizes</h3>
185185
Roughly, the <a>inline size</a> that would fit around its contents
186186
if <em>all</em> soft wrap opportunities within the box were taken.
187187

188-
Note: This is called the “preferred minimum width” in <a href="https://www.w3.org/TR/CSS21/visudet.html#float-width">CSS2.1§10.3.5</a>
189-
and the “minimum content width” in <a href="https://www.w3.org/TR/CSS21/tables.html#auto-table-layout">CSS2.1§17.5.2.2</a>.
188+
Note: This is called the “preferred minimum width” in <a href="https://www.w3.org/TR/CSS2/visudet.html#float-width">CSS2.1§10.3.5</a>
189+
and the “minimum content width” in <a href="https://www.w3.org/TR/CSS2/tables.html#auto-table-layout">CSS2.1§17.5.2.2</a>.
190190

191191
: <dfn>min-content block size</dfn>
192192
:: Equivalent to the <a>max-content block size</a>.
@@ -203,7 +203,7 @@ Auto Box Sizes</h3>
203203
equal to <code>min(<a>max-content size</a>, max(<a>min-content size</a>, <a>stretch-fit size</a>))</code>.
204204
Otherwise, equal to the <a>max-content size</a> in that axis.
205205

206-
Note: This is called the “shrink-to-fit” width in <a href="https://www.w3.org/TR/CSS21/visudet.html#float-width">CSS2.1§10.3.5</a>
206+
Note: This is called the “shrink-to-fit” width in <a href="https://www.w3.org/TR/CSS2/visudet.html#float-width">CSS2.1§10.3.5</a>
207207
and <a href="https://www.w3.org/TR/css3-multicol/#pseudo-algorithm">CSS Multi-column Layout § 3.4</a>.
208208
</div>
209209

@@ -260,7 +260,7 @@ New Keywords for 'width' and 'height'</h3>
260260
as appropriate to the writing mode.
261261

262262
NOTE: This is the formula used to calculate ''width/auto'' widths
263-
for non-replaced blocks in normal flow, see <a href="https://www.w3.org/TR/CSS21/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
263+
for non-replaced blocks in normal flow, see <a href="https://www.w3.org/TR/CSS2/visudet.html#blockwidth">CSS2.1§10.3.3</a>.
264264
It allows re-using this formula for boxes that are otherwise shrink-wrapped,
265265
like tables.
266266

@@ -304,7 +304,7 @@ New Keywords for 'width' and 'height'</h3>
304304
Note that percentages resolved against the intrinsic sizes
305305
(''width/max-content'', ''width/min-content'', ''width/fit-content'')
306306
will compute to ''width/auto'',
307-
<a href="https://www.w3.org/TR/CSS21/visudet.html#the-height-property">as defined by CSS 2.1</a>. [[!CSS21]]
307+
<a href="https://www.w3.org/TR/CSS2/visudet.html#the-height-property">as defined by CSS 2.1</a>. [[!CSS2]]
308308

309309
<h3 id='the-contain-floats-value'>
310310
Containing Floats</h3>
@@ -439,8 +439,8 @@ Intrinsic Sizes of Non-Replaced Blocks</h3>
439439
The <a>min-content block size</a> and <a>max-content block size</a> of a <a>block container box</a>
440440
is the content block-size as defined
441441
(for horizontal writing modes)
442-
in <a href="https://www.w3.org/TR/CSS21/visudet.html#normal-block">CSS2.1§10.6.3</a>
443-
and <a href="https://www.w3.org/TR/CSS21/tables.html#height-layout">CSS2.1§17.5.3</a>
442+
in <a href="https://www.w3.org/TR/CSS2/visudet.html#normal-block">CSS2.1§10.6.3</a>
443+
and <a href="https://www.w3.org/TR/CSS2/tables.html#height-layout">CSS2.1§17.5.3</a>
444444
for elements with ''height: auto'',
445445
and analogously for vertical writing modes.
446446

@@ -576,7 +576,7 @@ Stretch-fit Sizing</h3>
576576
</ul>
577577
<p>
578578
&hellip;less the box's <a>inline-axis</a> margins
579-
(after any <a href="https://www.w3.org/TR/CSS21/box.html#collapsing-margins">margin collapsing</a>, and treating ''margin/auto'' margins as zero),
579+
(after any <a href="https://www.w3.org/TR/CSS2/box.html#collapsing-margins">margin collapsing</a>, and treating ''margin/auto'' margins as zero),
580580
borders, and padding,
581581
flooring at zero.
582582

@@ -673,7 +673,7 @@ Percentage Sizing</h3>
673673
Note: See definition of percentage
674674
<a href="https://www.w3.org/TR/CSS2/visudet.html#the-width-property"><css>width</css></a>
675675
and <a href="https://www.w3.org/TR/CSS2/visudet.html#the-height-property"><css>height</css></a>
676-
in [[CSS21]].
676+
in [[CSS2]].
677677

678678
<h2 class=no-num id="changes">
679679
Changes</h2>

css-sizing/Overview.bs.rej

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--- Overview.bs
2+
+++ Overview.bs
3+
@@ -303,15 +308,6 @@ New Keywords for 'width' and 'height'</h3>
4+
this is true automatically.
5+
For Block layout, this means using ''display: flow-root;''.
6+
7+
- <p class="issue">
8+
- Right now all of these except ''width/fill'' mean the same thing
9+
- for block-sizes. This may or may not be ideal.
10+
-
11+
- <p class='issue'>
12+
- If the inline-size is ''width/auto'',
13+
- we could have min-content block-size imply a max-content inline-size,
14+
- and vice versa.
15+
-
16+
<p class='note'>
17+
Note that percentages resolved against the intrinsic sizes
18+
(''width/max-content'', ''width/min-content'', ''width/fit-content'')

0 commit comments

Comments
 (0)