Skip to content

Commit 7dccfd7

Browse files
committed
[css2] Changes to definition of the root's containing block, as per
http://lists.w3.org/Archives/Member/w3c-css-wg/2002AprJun/0207.html --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401896
1 parent 490d3dd commit 7dccfd7

2 files changed

Lines changed: 25 additions & 7 deletions

File tree

css2/changes.src

Lines changed: 13 additions & 1 deletion
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: changes.src,v 2.24 2002-07-08 14:57:50 bbos Exp $ -->
3+
<!-- $Id: changes.src,v 2.25 2002-07-15 11:39:41 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Appendix B: Changes</TITLE>
@@ -833,6 +833,18 @@ model</a></h4>
833833
<p>The value 'compact' for 'display' does not exist in CSS&nbsp;2.1.
834834
'Inline-block' is added.
835835

836+
<h4 id="s-10-1"><a
837+
href="visudet.html#containing-block-details">Section 10.1 Definition
838+
of "containing block"</a></h4>
839+
840+
<p>A suggestion has been added that UAs take the viewport as the
841+
containing block of the root element.
842+
843+
<p>The containing block for an absolutely positioned element that has
844+
no absolutely or relatively positioned ancestor no longer defaults to
845+
the root element, but is undefined, with as a suggestion that UAs use
846+
the viewport.
847+
836848
<h4 id="s-10-3-7"><a
837849
href="visudet.html#abs-non-replaced-width">Section 10.3.7 Absolutely
838850
positioned, non-replaced elements</a></h4>

css2/visudet.src

Lines changed: 12 additions & 6 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.51 2002-07-08 14:57:51 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.52 2002-07-15 11:39:41 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Visual formatting model details</TITLE>
@@ -19,9 +19,12 @@ block</span></dfn> of the element. The containing block of an element
1919
is defined as follows:</p>
2020

2121
<ol>
22-
<li>The containing block (called the initial containing block)
22+
<li>The containing block
2323
in which the <a href="conform.html#root">root
24-
element</a> lives is chosen by the user agent.
24+
element</a> lives is chosen by the user agent. It is suggested that
25+
UAs use a rectangle with the width and height of the viewport
26+
excluding scrolling mechanisms, anchored at the origin of the infinite
27+
canvas.
2528

2629
<li>For other elements, if the element's position is 'relative' or 'static',
2730
the containing block is formed by the content edge of the nearest
@@ -58,8 +61,10 @@ are the bottom and left content edges of the last box of the ancestor.
5861
</ol>
5962
</ol>
6063

61-
<p>If there is no such ancestor, the content edge of the root element's
62-
box establishes the containing block.
64+
<p>If there is no such ancestor, the contianing block is UA dependent,
65+
but it is suggested that UAs use a rectangle with the width and height
66+
of the viewport excluding scrolling mechanisms, anchored at the origin
67+
of the infinite canvas.
6368
</ol>
6469

6570
<div class="example">
@@ -546,7 +551,8 @@ agent if the value of this property is different than 'auto'.
546551
with respect to the height of the
547552
generated box's <a href="visuren.html#containing-block">containing
548553
block</a>. If the height of the containing block is not
549-
specified explicitly (i.e., it depends on content height), the
554+
specified explicitly (i.e., it depends on content height), and this
555+
element is not positioned, the
550556
value is interpreted like 'auto'.
551557
<dt><strong>auto</strong>
552558
<dd>The height depends on the values of other properties.

0 commit comments

Comments
 (0)