Skip to content

Commit 66f0aff

Browse files
committed
[css2] Tantek's edits after Oslo ftf
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402144
1 parent f80c617 commit 66f0aff

1 file changed

Lines changed: 30 additions & 19 deletions

File tree

css2/visuren.src

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: visuren.src,v 2.103 2003-08-25 13:33:21 bbos Exp $ -->
3+
<!-- $Id: visuren.src,v 2.104 2003-08-27 09:46:13 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model</title>
77
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
8-
<!-- Changed by: Tantek Celik, 2003-08-24 -->
8+
<!-- Changed by: Tantek Celik, 2003-08-27 -->
99
<style type="text/css">
1010
.current,.proposed,span.delcurrent { background:#feb }
1111
ins.proposed,span.insproposed,li.insproposed { background:#bfb }
@@ -84,8 +84,8 @@ views of the same document).
8484
</h3>
8585

8686
<p>In CSS&nbsp;2.1, many box positions and sizes are calculated with respect
87-
to <span class="delcurrent">the edges
88-
of a rectangular box called a</span><span class="insproposed">their</span> <span class="index-def"
87+
to the edges
88+
of a rectangular box called a <span class="index-def"
8989
title="containing block"><dfn>containing block</dfn></span>. In
9090
general, generated boxes act as containing blocks for descendant
9191
boxes; we say that a box "establishes" the containing block for its
@@ -516,7 +516,7 @@ with the <span class="propinst-top">'top'</span>,
516516
<span class="propinst-bottom">'bottom'</span>, and
517517
<span class="propinst-left">'left'</span>
518518
properties.
519-
These properties specify offsets with respect to the <span class="delcurrent">box's</span> <span class="insproposed"><em>padding</em> box of its</span>
519+
These properties specify offsets with respect to the box's
520520
<a href="#containing-block">containing block</a>. Absolutely
521521
positioned boxes are taken out of the normal flow. This means
522522
they have no impact on the layout of later siblings. Also,
@@ -573,38 +573,50 @@ positioned boxes, laid out according to four properties:</p>
573573

574574
<p>This property specifies how far an <a
575575
href="#absolutely-positioned">absolutely positioned</a> box's top
576-
margin edge is offset below the top <span class="insproposed"><em>padding</em></span> edge of <span class="delcurrent">the box's</span><span class="insproposed">its</span> <a
576+
margin edge is offset below the top edge of the box's <a
577577
href="#containing-block">containing block</a>. For relatively
578578
positioned boxes, the offset is with respect to the top edges of the
579579
box itself (i.e., the box is given a position in the normal flow, then
580580
offset from that position according to these properties).
581+
<span class="note">
582+
Note: For absolutely positioned elements whose containing block is based on a block-level element, this property is an offset from the <em>padding</em> edge of that element.
583+
</span>
581584
</p>
582585

583586
<!-- #include src=properties/right.srb -->
584587

585588
<p>Like 'top', but specifies how far a box's right margin edge is
586-
offset to the left of the right <span class="insproposed"><em>padding</em></span> edge of <span class="delcurrent">the box's</span><span class="insproposed">its</span> <a
589+
offset to the left of the right edge of the box's <a
587590
href="#containing-block">containing block</a>. For relatively
588591
positioned boxes, the offset is with respect to the right edge of the
589592
box itself.
593+
<span class="note">
594+
Note: For absolutely positioned elements whose containing block is based on a block-level element, this property is an offset from the <em>padding</em> edge of that element.
595+
</span>
590596
</p>
591597

592598
<!-- #include src=properties/bottom.srb -->
593599

594600
<p>Like 'top', but specifies how far a box's bottom margin edge is
595-
offset above the bottom <span class="insproposed"><em>padding</em> edge</span> of <span class="delcurrent">the box's</span><span class="insproposed">its</span> <a
601+
offset above the bottom of the box's <a
596602
href="#containing-block">containing block</a>. For relatively
597603
positioned boxes, the offset is with respect to the bottom edge of the
598604
box itself.
605+
<span class="note">
606+
Note: For absolutely positioned elements whose containing block is based on a block-level element, this property is an offset from the <em>padding</em> edge of that element.
607+
</span>
599608
</p>
600609

601610
<!-- #include src=properties/left.srb -->
602611

603612
<p>Like 'top', but specifies how far a box's left margin edge is
604-
offset to the right of the left <span class="insproposed"><em>padding</em></span> edge of <span class="delcurrent">the box's</span><span class="insproposed">its</span> <a
613+
offset to the right of the left edge of the box's <a
605614
href="#containing-block">containing block</a>. For relatively
606615
positioned boxes, the offset is with respect to the left edge of the
607616
box itself.
617+
<span class="note">
618+
Note: For absolutely positioned elements whose containing block is based on a block-level element, this property is an offset from the <em>padding</em> edge of that element.
619+
</span>
608620
</p>
609621

610622
<p>The values for the four properties have the following meanings:</p>
@@ -615,8 +627,8 @@ box itself.
615627
</dd>
616628
<dt><strong><span class="value-inst-percentage">&lt;percentage&gt;</span></strong></dt>
617629

618-
<dd>The offset is a percentage of the containing block's <span class="insproposed"><em>padding</em> box</span> width (for <span class="propinst-left">'left'</span> or <span
619-
class="propinst-right">'right'</span>) or <span class="insproposed"><em>padding</em> box</span> height (for <span
630+
<dd>The offset is a percentage of the containing block's box width (for <span class="propinst-left">'left'</span> or <span
631+
class="propinst-right">'right'</span>) or height (for <span
620632
class="propinst-top">'top'</span> and <span
621633
class="propinst-bottom">'bottom'</span>). For 'top'
622634
and 'bottom', if the height of the
@@ -933,7 +945,7 @@ In other words, if inline boxes are placed
933945
on the line before a left float is encountered that fits in the remaining line box space,
934946
the left float is placed on that line, aligned with the top of the line box, and then the inline boxes already on the line are moved accordingly to the right of the float (the right being the other side of the left float) and vice versa for rtl and right floats.
935947
</p>
936-
</p>
948+
<p>
937949
The margin box of an element in the normal flow that establishes a new block formatting context (such as a table, or element with 'overflow' other than 'visible') must not overlap any floats in the same block formatting context as the element itself. If necessary, implementations should clear the said element by placing it below any preceding floats, but may place it adjacent to such floats if there is sufficient space.
938950
</p>
939951
<div class="example">
@@ -1194,7 +1206,7 @@ the <span class="propinst-clear">'clear'</span> property</h3>
11941206
<em>not</em> be adjacent to an earlier floating box. (It may be that
11951207
the element itself has floating descendants; the <span
11961208
class="propinst-clear">'clear'</span> property has no effect on
1197-
those<span class="insproposed">, neither does it affect elements in a different formatting context</span>.)
1209+
those<span class="insproposed">, neither does it affect elements in a different block formatting context</span>.)
11981210
</p>
11991211

12001212
<p>
@@ -1277,7 +1289,7 @@ span { clear: left }
12771289
<h2><a name="absolute-positioning">Absolute positioning</a></h2>
12781290

12791291
<p>In the absolute positioning model, a box is explicitly offset with
1280-
respect to <span class="insproposed">the <em>padding</em> box of</span> its containing block. It is removed from the normal flow
1292+
respect to its containing block. It is removed from the normal flow
12811293
entirely (it has no impact on later siblings). An absolutely
12821294
positioned box establishes a new containing block for normal flow
12831295
children and <span class="insproposed">absolutely (but not fixed)</span> positioned descendants. However, the contents of an
@@ -1406,7 +1418,7 @@ table-cell, table-caption, inline-block </td><td>block</td></tr>
14061418
class="propinst-top">'top'</span>, <span
14071419
class="propinst-right">'right'</span>, <span
14081420
class="propinst-bottom">'bottom'</span> and <span
1409-
class="propinst-left">'left'</span> properties and the <span class="delcurrent">box's</span> <span class="insproposed"><em>padding</em> box of the</span>
1421+
class="propinst-left">'left'</span> properties and the box's
14101422
containing block.
14111423
</p>
14121424
</li>
@@ -1627,13 +1639,12 @@ Consider the following CSS declarations for <em>outer</em> and
16271639
</pre>
16281640

16291641
<p>which cause the top of the <em>outer</em> box to be positioned with
1630-
respect to <span class="insproposed">the
1631-
<em>padding</em> box of</span> its containing block. The containing block for a positioned
1642+
respect to its containing block. The containing block for a positioned
16321643
box is established by the nearest positioned ancestor (or, if none
16331644
exists, the <a href="visudet.html#containing-block-details">initial containing
16341645
block</a>, as in our example). The top side of the <em>outer</em> box
1635-
is '200px' below the top <span class="insproposed">padding edge</span> of the containing block and the left side is
1636-
'200px' from the left <span class="delcurrent">side</span><span class="insproposed">padding edge of the containing block</span> . The child box of <em>outer</em> is flowed
1646+
is '200px' below the top of the containing block and the left side is
1647+
'200px' from the left side. The child box of <em>outer</em> is flowed
16371648
normally with respect to its parent.</p>
16381649

16391650
<div class="figure">

0 commit comments

Comments
 (0)