Skip to content

Commit 89a4b17

Browse files
committed
[css2] Added that a percentage margin or width of a shrink-wrapped containing block is undefined by CSS 2.1 (rather than 0 or auto), as per Oslo ftf
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402142
1 parent ff65872 commit 89a4b17

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

css2/box.src

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'http://www.w3.org/TR/html4/strict.dtd'>
33

44
<html lang="en">
5-
<!-- $Id: box.src,v 1.39 2003-08-25 10:16:55 bbos Exp $ -->
5+
<!-- $Id: box.src,v 1.40 2003-08-26 10:00:27 bbos Exp $ -->
66
<HEAD>
77
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
88
<TITLE>Box model</TITLE>
@@ -203,9 +203,9 @@ with respect to the <em>width</em> of the generated box's
203203
<span class="note">Note that this is true for <span
204204
class="propinst-margin-top">'margin-top'</span> and <span
205205
class="propinst-margin-bottom">'margin-bottom'</span> as well.</span>
206-
<ins>If the containing block is intrinsically sized (i.e., it depends on
207-
its content's width) and the current element is not absolutely
208-
positioned, then the percentage is interpreted as '0'.</ins>
206+
If the containing block's width depends on its content's width, and
207+
the current element is not absolutely positioned, then the resulting
208+
layout is undefined in CSS&nbsp;2.1.
209209
<dt><strong>auto</strong>
210210
<dd>See the section on <a
211211
href="visudet.html#Computing_widths_and_margins">computing widths and
@@ -396,9 +396,9 @@ respect to the <em>width</em> of the generated box's <a
396396
href="visuren.html#containing-block">containing block</a>, even for
397397
<span class="propinst-padding-top">'padding-top'</span> and <span
398398
class="propinst-padding-bottom">'padding-bottom'</span>.
399-
<ins>If the containing block is intrinsically sized (i.e., it depends on
400-
its content's width) and the current element is not absolutely
401-
positioned, then the percentage is interpreted as '0'.</ins>
399+
If the containing block's width depends on its content's width, and
400+
the current element is not absolutely positioned, then the resulting
401+
layout is undefined in CSS&nbsp;2.1.
402402
</dl>
403403

404404
<P>Unlike margin properties, values for padding values cannot be

css2/visudet.src

Lines changed: 4 additions & 4 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.77 2003-08-25 10:10:50 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.78 2003-08-26 10:00:27 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model details</title>
@@ -213,9 +213,9 @@ user agent if the value of this property is different than 'auto'.
213213
<dd>Specifies a percentage width. The percentage is calculated
214214
with respect to the width of the generated box's
215215
<a href="visuren.html#containing-block">containing block</a>.
216-
If the containing block is intrinsically sized (i.e., it depends on
217-
its content's width) and the current element is not absolutely
218-
positioned, then a percentage is interpreted as 'auto'.
216+
If the containing block's width depends on its content's width, and
217+
the current element is not absolutely positioned, then the resulting
218+
layout is undefined in CSS&nbsp;2.1.
219219
</dd>
220220
<dt><strong>auto</strong>
221221
</dt>

0 commit comments

Comments
 (0)