Skip to content

Commit bba2cf4

Browse files
committed
[css2] Fixed bugs related to containing block definitions. Still problems with WG of relatively positioned inline boxes
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401043
1 parent e767c84 commit bba2cf4

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

css2/visudet.src

Lines changed: 17 additions & 15 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.6 1998-02-20 22:33:50 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.7 1998-02-21 00:22:39 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Visual rendering model details</TITLE>
@@ -627,11 +627,17 @@ established by the parent box.
627627
<P>When the containing block is established by a <a
628628
href="visuren.html#block-level">block-level</a> box, it has the same
629629
width, height, and position as the parent's <a
630-
href="visuren.html#padding-edge">padding edge</a>. When the containing
631-
block is established by an <a href="visuren.html#inline">inline</a>
632-
box, it has the same width, height, and position as the <a
633-
href="visuren.html#padding-edge">padding edge</a> of the first <a
634-
href="visuren.html#line-box">line box</a> generated by the inline box.
630+
href="visuren.html#padding-edge">padding edge</a>.
631+
632+
<P>When the containing block is established by an <a
633+
href="visuren.html#inline">inline</a> element, it has the same width,
634+
height, and position as the <a
635+
href="visuren.html#padding-edge">padding edge</a> of the first (in the
636+
source tree) box generated by the inline element.
637+
638+
<!-- The previous paragraph does not comply with the WG's decision
639+
in. Note, especially, in WG solution, that percentages applied to
640+
negative widths cause problems. -IJ -->
635641

636642
<P><a href="visuren.html#relative-positioning">Relatively
637643
positioned</a> <a href="visuren.html#inline">inline</a> boxes must be
@@ -644,17 +650,13 @@ are the following:</p>
644650

645651
<ul>
646652
<li>For left-to-right scripts, the left and top edges are those
647-
of the first line box. The bottom and right edges are undefined
648-
in this case.
653+
of the first inline box. The bottom and right edges are those
654+
of the last inline box.
649655
<li>For right-to-left scripts, the right and top edges are those
650-
of the first line box. The bottom and left edges are undefined
651-
in this case.
656+
of the first inline box. The bottom and left edges are those
657+
of the last inline box.
652658
</ul>
653659

654-
<!-- The secondary direction in CSS2 is top-to-bottom.
655-
[HWL: add figure]
656-
-->
657-
658660
<H2><a name="box-width">Box width calculations</a></H2>
659661

660662
<P>As discussed in the section on <a
@@ -1172,7 +1174,7 @@ class="value-inst-percentage"><strong>&lt;percentage&gt;</strong></span></span>
11721174
<a href="cascade.html#actual-value">
11731175
actual value</a> of the property is this percentage multiplied
11741176
by the element's font size. <!-- What about intrinsic? -IJ -->
1175-
Negative values are legal.
1177+
Negative values are valid.
11761178
Percentages raise the baseline of the element (or the bottom,
11771179
if it has no baseline) the specified amount above the baseline of the
11781180
parent. For example, a value of '-100%' will

0 commit comments

Comments
 (0)