Skip to content

Commit 55f826e

Browse files
committed
[css2] - Clarified top/bottom/left/right w.r.t relative positioning
(defns said too strongly w.r.t. containing block and didn't take into account relative positioning in defn, only below). - Generalized conditions about a single split to several splits. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401737
1 parent ea32b38 commit 55f826e

1 file changed

Lines changed: 29 additions & 22 deletions

File tree

css2/visuren.src

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: visuren.src,v 2.73 1998-06-08 14:39:39 ijacobs Exp $ -->
3+
<!-- $Id: visuren.src,v 2.74 1998-09-28 23:20:44 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Visual formatting model</TITLE>
7+
<!-- Changed by: Ian B. Jacobs, 28-Sep-1998 -->
78
</HEAD>
89
<BODY>
910
<H1 align="center">Visual formatting model</H1>
@@ -631,26 +632,38 @@ positioned boxes, laid out according to four properties:</p>
631632

632633
<!-- #include src=properties/top.srb -->
633634

634-
<P>This property specifies how far a box's top content edge is offset below
635-
the top edge of the box's <a href="#containing-block">containing block</a>.
635+
<P>This property specifies how far an <a
636+
href="#absolutely-positioned">absolutely positioned</a> box's top
637+
margin edge is offset below the top edge of the box's <a
638+
href="#containing-block">containing block</a>. For relatively
639+
positioned boxes, the offset is with respect to the top edges of the
640+
box itself (i.e., the box is given a position in the normal flow, then
641+
offset from that position according to these properties).
636642

637643
<!-- #include src=properties/right.srb -->
638644

639-
<P>This property specifies how far a box's right content edge is offset
640-
to the left of the right edge of the box's <a
641-
href="#containing-block">containing block</a>.
645+
<P>Like 'top', but specifies how far a box's right margin edge is
646+
offset to the left of the right edge of the box's <a
647+
href="#containing-block">containing block</a>. For relatively
648+
positioned boxes, the offset is with respect to the right edge of the
649+
box itself.
650+
642651

643652
<!-- #include src=properties/bottom.srb -->
644653

645-
<P>This property specifies how far a box's bottom content edge is offset
646-
above the bottom of the box's <a href="#containing-block">containing
647-
block</a>.
654+
<P>Like 'top', but specifies how far a box's bottom margin edge is
655+
offset above the bottom of the box's <a
656+
href="#containing-block">containing block</a>. For relatively
657+
positioned boxes, the offset is with respect to the bottom edge of the
658+
box itself.
648659

649660
<!-- #include src=properties/left.srb -->
650661

651-
<P>This property specifies how far a box's left content edge is offset
652-
to the right of the left edge of the box's <a
653-
href="#containing-block">containing block</a>.
662+
<P>Like 'top', but specifies how far a box's left margin edge is
663+
offset to the right of the left edge of the box's <a
664+
href="#containing-block">containing block</a>. For relatively
665+
positioned boxes, the offset is with respect to the left edge of the
666+
box itself.
654667

655668
<P>The values for the four properties have the following meanings:</p>
656669

@@ -678,13 +691,6 @@ of <a href="#absolutely-positioned">absolutely positioned</a>,
678691
non-replaced elements for details.
679692
</dl>
680693

681-
<P>For <a href="#absolutely-positioned">absolutely positioned</a>
682-
boxes, the offsets are with respect to the box's <a
683-
href="#containing-block">containing block</a>. For relatively
684-
positioned boxes, the offsets are with respect to the outer edges of
685-
the box itself (i.e., the box is given a position in the normal flow,
686-
then offset from that position according to these properties).
687-
688694
<H2><a name="normal-flow">Normal flow</a></H2>
689695

690696
<P>Boxes in the normal flow belong to a <span class="index-def"
@@ -761,9 +767,10 @@ inline boxes as well.
761767
<P>Since an inline box may not exceed the width of a line box, long
762768
inline boxes are split into several boxes and these boxes distributed
763769
across several line boxes. When an inline box is split, margins,
764-
borders, and padding have no visual effect where the split occurs.
765-
Formatting of margins, borders, and padding may not be fully defined if
766-
the split occurs within a bidirectional embedding.
770+
borders, and padding have no visual effect where the split occurs (or
771+
at any split, when there are several). Formatting of margins,
772+
borders, and padding may not be fully defined if the split occurs
773+
within a bidirectional embedding.
767774

768775
<P>Inline boxes may also be split into several boxes <em>within the
769776
same line box</em> due to <a href="#direction">bidirectional text

0 commit comments

Comments
 (0)