Skip to content

Commit e25b648

Browse files
committed
[css2] Issue 36.
http://csswg.inkedblade.net/spec/css2.1#issue-36 --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402825
1 parent 38d3720 commit e25b648

2 files changed

Lines changed: 23 additions & 11 deletions

File tree

css2/changes.src

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: changes.src,v 2.84 2008-03-04 09:58:52 bbos Exp $ -->
3+
<!-- $Id: changes.src,v 2.85 2008-03-05 15:36:14 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Changes</TITLE>
@@ -623,8 +623,6 @@ level
623623
<h3 id="c10.3.3"><a href="visudet.html#blockwidth">Section 10.3.3
624624
Block-level, non-replaced elements in normal flow</a></h3>
625625

626-
<p>Added the vertical scrollbar width to the horizontal constraint equation.</p>
627-
628626
<p>Specified that a computed total of the width, padding, and borders
629627
that is greater than the containing block width causes auto margins to
630628
be treated as zero in the rest of the rules. This avoids 'auto' margins
@@ -654,10 +652,13 @@ Absolutely positioned, non-replaced elements</a></h3>
654652

655653
<p>Defined the static position of an element more precisely.</p>
656654

657-
<p>Added vertical scrollbar width to the horizontal restraint equation.</p>
658-
659655
<p>Rewrote constraint rules.</p>
660656

657+
<p>The 'direction' property of the containing block of the static
658+
position determines which side is clamped to the static position, not
659+
the 'direction' property of the containing block of the absolutely
660+
positioned element.
661+
661662
<h3 id="c10.3.8"><a href="visudet.html#abs-replaced-width">Section 10.3.8
662663
Absolutely positioned, replaced elements</a></h3>
663664

@@ -666,6 +667,11 @@ Absolutely positioned, replaced elements</a></h3>
666667
<p>In rule 2 (formerly rules 2 and 3), referred to new definition of
667668
'static position' in section 10.3.7.</p>
668669

670+
<p>Also in rule 2, the 'direction' property of the containing block of
671+
the static position determines which side is clamped to the static
672+
position, not the 'direction' property of the containing block of the
673+
absolutely positioned element.
674+
669675
<p>In rule 4 (formerly rule 5), prevented 'auto' left and right margins
670676
in resulting in a negative margin on the start edge.</p>
671677

@@ -745,8 +751,6 @@ Absolutely positioned, non-replaced elements</a></h3>
745751

746752
<p>Defined the static position of an element more precisely.</p>
747753

748-
<p>Added vertical scrollbar width to the horizontal restraint equation.</p>
749-
750754
<p>Rewrote constraint rules.</p>
751755

752756
<h3 id="c10.6.5"><a href="visudet.html#abs-replaced-height">Section 10.6.5

css2/visudet.src

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: visudet.src,v 2.124 2008-02-26 16:52:51 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.125 2008-03-05 15:36:29 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model details</title>
@@ -435,6 +435,11 @@ to the position an element would have had in the normal flow. More
435435
precisely:
436436
</p>
437437
<ul>
438+
<li>The <dfn>static-position containing block</dfn> is the containing
439+
block of a hypothetical box that would have been the first box of the
440+
element if its 'position' property had been 'static' and its 'float'
441+
had been 'none'.
442+
</li>
438443
<li>The static position for 'left' is the distance from the left edge
439444
of the containing block to the left margin edge of a hypothetical box
440445
that would have been the first box of the element if its <span
@@ -470,7 +475,8 @@ elements is:</p>
470475

471476
<p>If all three of 'left', 'width', and 'right' are 'auto': First set
472477
any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if
473-
the 'direction' property of the containing block is 'ltr' set 'left'
478+
the 'direction' property of the element establishing the
479+
static-position containing block is 'ltr' set 'left'
474480
to the <a
475481
href="#static-position">static position</a> and apply rule number
476482
three below; otherwise, set 'right' to the <a
@@ -499,7 +505,8 @@ to 0, and pick the one of the following six rules that applies.</p>
499505
width is shrink-to-fit. Then solve for 'left'</li>
500506

501507
<li>'left' and 'right' are 'auto' and 'width' is not 'auto', then if
502-
the 'direction' property of the containing block is 'ltr' set 'left'
508+
the 'direction' property of the element establishing the
509+
static-position containing block is 'ltr' set 'left'
503510
to the <a
504511
href="#static-position">static position</a>, otherwise set 'right'
505512
to the <a href="#static-position">static position</a>. Then solve
@@ -546,7 +553,8 @@ elements</a>.
546553
</li>
547554
<li>If both <span class="propinst-left">'left'</span> and <span
548555
class="propinst-right">'right'</span> have the value 'auto', then if
549-
'direction' of the containing block is 'ltr', set <span
556+
the 'direction' property of the element establishing the
557+
static-position containing block is 'ltr', set <span
550558
class="propinst-left">'left'</span> to
551559
the static position; else if 'direction' is 'rtl', set <span
552560
class="propinst-right">'right'</span> to the static position.

0 commit comments

Comments
 (0)