Skip to content

Commit 2df4d10

Browse files
committed
[css2] Corrections related to scaling of width and height for replaced elements in sections 10.3.2, 10.3.4, 10.3.6, 10.3.8, 10.6.2, and 10.6.5
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401812
1 parent 1efbfd3 commit 2df4d10

2 files changed

Lines changed: 97 additions & 25 deletions

File tree

css2/errata.src

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ hspace="0"></a><br clear="all"></p>
2525
<dd><a href="_THE_UPDATE_DIR_/_THE_ID_-errata.html">
2626
_THE_UPDATE_DIR_/_THE_ID_-errata.html</a>
2727
<dt>Last revised:
28-
<dd>$Date: 2000-07-26 14:05:51 $
28+
<dd>$Date: 2000-07-26 14:40:15 $
2929
</dl>
3030

3131
<dl>
@@ -155,12 +155,55 @@ below the top edge of the box's containing block."
155155
"Once a box has been laid out according to the normal flow"
156156
the words "or floated,".
157157

158+
<H3><a href="visudet.html#q5">Section 10.3.2
159+
Inline, replaced elements</a> (and 10.3.4, 10.3.6, and 10.3.8)</H3>
160+
161+
<P>Change:</P>
162+
163+
<BLOCKQUOTE>
164+
<P> A specified value of 'auto' for 'width' gives the element's intrinsic
165+
width as the computed value.
166+
</BLOCKQUOTE>
167+
168+
<P>to:</P>
169+
170+
<BLOCKQUOTE>
171+
<P> If 'width' has a specified value of 'auto' and 'height' also has a
172+
specified value of 'auto', the element's intrinsic width is the
173+
computed value of 'width'. If 'width' has a specified value of
174+
'auto' and 'height' has some other specified value, then the computed
175+
value of 'width' is
176+
(intrinsic width) * ( (computed height) / (intrinsic height) ).
177+
</BLOCKQUOTE>
178+
158179
<h3><a href="visudet.html#q6">Section 10.3.3</a></h3>
159180

160181
<P>In the last sentence of the paragraph following the equation --
161182
"If the value of 'direction' is 'ltr', this happens to
162183
'margin-left' instead." -- substitute 'rtl' for 'ltr'.
163184

185+
<H3><a href="visudet.html#q16">Section 10.6.2
186+
Inline, replaced elements ...</a> (and 10.6.5)</H3>
187+
188+
<P>Change:</P>
189+
190+
<BLOCKQUOTE>
191+
<P> If 'height' is 'auto', the computed value
192+
is the intrinsic height.
193+
</BLOCKQUOTE>
194+
195+
<P>to:</P>
196+
197+
<BLOCKQUOTE>
198+
<P> If 'height' has a specified value of 'auto' and 'width' also has a
199+
specified value of 'auto', the element's intrinsic height is the
200+
computed value of 'height'. If 'height' has a specified value of
201+
'auto' and 'width' has some other specified value, then the computed
202+
value of 'height' is
203+
(intrinsic height) * ( (computed width) / (intrinsic width) ).
204+
</BLOCKQUOTE>
205+
206+
164207
<h3><a href="visudet.html#q17">Section 10.6.3</a></H3>
165208

166209
<P>The height calculation for block-level, non-replaced elements in

css2/visudet.src

Lines changed: 53 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: visudet.src,v 2.46 1999-11-04 21:35:35 ijacobs Exp $ -->
3+
<!-- $Id: visudet.src,v 2.47 2000-07-26 14:40:15 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Visual formatting model details</TITLE>
@@ -218,7 +218,7 @@ class="propinst-margin-left">'margin-left'</span> or <span
218218
class="propinst-margin-right">'margin-right'</span> becomes a computed
219219
value of '0'.
220220

221-
<h3>Inline, replaced elements</h3>
221+
<h3><a name="inline-replaced-width">Inline, replaced elements</a></h3>
222222

223223
<p>A specified value of 'auto' for <span
224224
class="propinst-left">'left'</span>, <span
@@ -227,7 +227,19 @@ class="propinst-margin-left">'margin-left'</span> or <span
227227
class="propinst-margin-right">'margin-right'</span> becomes a computed
228228
value of '0'. A specified value of 'auto' for <span
229229
class="propinst-width">'width'</span> gives the element's <a
230-
href="conform.html#intrinsic">intrinsic</a> width as the computed value.
230+
href="conform.html#intrinsic">intrinsic</a> width as the computed
231+
value. If <span class="propinst-width">'width'</span> has a specified
232+
value of 'auto' and <span class="propinst-height">'height'</span> also
233+
has a specified value of 'auto', the element's intrinsic width is the
234+
computed value of <span class="propinst-width">'width'</span>. If
235+
<span class="propinst-width">'width'</span> has a specified value of
236+
'auto' and <span class="propinst-height">'height'</span> has some
237+
other specified value, then the computed value of <span
238+
class="propinst-width">'width'</span> is:</P>
239+
240+
<PRE>
241+
(intrinsic width) * ( (computed height) / (intrinsic height) )
242+
</PRE>
231243

232244
<h3>Block-level, non-replaced elements in normal flow</h3>
233245

@@ -274,12 +286,13 @@ to the edges of the containing block.
274286

275287
<p>If <span class="propinst-left">'left'</span> or <span
276288
class="propinst-right">'right'</span> are 'auto', their computed value
277-
is 0. If <span class="propinst-width">'width'</span> is specified as
278-
'auto', its value is the element's <a
279-
href="conform.html#intrinsic">intrinsic</a> width. If one of the margins is
280-
'auto', its computed value is given by the <a
281-
href="#width-constraints">constraints</a> above. Furthermore, if both
282-
margins are 'auto', their computed values are equal.
289+
is 0. The computed value of
290+
<span class="propinst-width">'width'</span> is determined
291+
as for <a href="#inline-replaced-width">inline replaced
292+
elements</a>.
293+
If one of the margins is 'auto', its computed value is given by the
294+
<a href="#width-constraints">constraints</a> above. Furthermore, if
295+
both margins are 'auto', their computed values are equal.
283296

284297
<h3>Floating, non-replaced elements</h3>
285298

@@ -296,8 +309,11 @@ class="propinst-margin-right">'margin-right'</span> are specified as
296309
class="propinst-right">'right'</span>, <span
297310
class="propinst-margin-left">'margin-left'</span> or <span
298311
class="propinst-margin-right">'margin-right'</span> are specified as
299-
'auto', their computed value is '0'. If 'width' is 'auto', its value
300-
is the element's <a href="conform.html#intrinsic">intrinsic</a> width.
312+
'auto', their computed value is '0'.
313+
The computed value of
314+
<span class="propinst-width">'width'</span> is determined
315+
as for <a href="#inline-replaced-width">inline replaced
316+
elements</a>.
301317

302318
<h3><a name="abs-non-replaced-width">Absolutely positioned, non-replaced elements</a></h3>
303319

@@ -375,9 +391,10 @@ element has an <a href="conform.html#intrinsic">intrinsic</a> width. The
375391
sequence of substitutions is now:</p>
376392

377393
<ol>
378-
<li>If <span class="propinst-width">'width'</span> is 'auto',
379-
substitute the element's <a
380-
href="conform.html#intrinsic">intrinsic</a> width.
394+
<li>The computed value of
395+
<span class="propinst-width">'width'</span> is determined
396+
as for <a href="#inline-replaced-width">inline replaced
397+
elements</a>.
381398

382399
<li>If <span class="propinst-left">'left'</span>
383400
has the value 'auto' while <span
@@ -584,19 +601,29 @@ are found in different fonts), the height of the content area is not
584601
defined by this specification. However, we recommend that the largest
585602
font size determine the content height.
586603

587-
<H3>Inline, replaced elements
588-
block-level, replaced elements in normal flow, and
589-
floating, replaced elements</H3>
604+
<H3><a name="inline-replaced-height">Inline replaced elements</a>,
605+
block-level replaced elements in normal flow, and
606+
floating replaced elements</H3>
590607

591608
<p>If <span class="propinst-top">'top'</span>, <span
592609
class="propinst-bottom">'bottom'</span>, <span
593610
class="propinst-margin-top">'margin-top'</span>, or <span
594611
class="propinst-margin-bottom">'margin-bottom'</span> are 'auto',
595-
their computed value is 0. If <span
596-
class="propinst-height">'height'</span> is 'auto', the computed value
597-
is the <a href="conform.html#intrinsic">intrinsic</a> height.
612+
their computed value is 0.
613+
If <span class="propinst-height">'height'</span> has a specified value
614+
of 'auto' and <span class="propinst-width">'width'</span>. also has a
615+
specified value of 'auto', the element's intrinsic height is the
616+
computed value of <span class="propinst-height">'height'</span>. If
617+
<span class="propinst-height">'height'</span> has a specified value of
618+
'auto' and <span class="propinst-width">'width'</span>. has some
619+
other specified value, then the computed value of <span
620+
class="propinst-height">'height'</span> is:
621+
622+
<PRE>
623+
(intrinsic height) * ( (computed width) / (intrinsic width) )
624+
</PRE>
598625

599-
<H3>Block-level, non-replaced elements in normal flow, and
626+
<H3>Block-level, non-replaced elements in normal flow and
600627
floating, non-replaced elements</H3>
601628

602629
<p>If <span class="propinst-top">'top'</span>, <span
@@ -681,9 +708,11 @@ element has an <a href="conform.html#intrinsic">intrinsic</a> height. The
681708
sequence of substitutions is now:
682709

683710
<ol>
684-
<li>If <span class="propinst-height">'height'</span> is 'auto',
685-
substitute the element's <a href="conform.html#intrinsic">intrinsic</a>
686-
height.
711+
<li>
712+
The computed value of
713+
<span class="propinst-height">'height'</span> is determined
714+
as for <a href="#inline-replaced-height">inline replaced
715+
elements</a>.
687716

688717
<li>If <span class="propinst-top">'top'</span> has the value 'auto',
689718
replace it with the distance from the top edge of the containing block

0 commit comments

Comments
 (0)