Skip to content

Commit fd6cf78

Browse files
committed
[css2] Issues 137 and 138 from http://wiki.csswg.org/spec/css2.1
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%403031
1 parent c11153c commit fd6cf78

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

css2/visuren.src

Lines changed: 16 additions & 10 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: visuren.src,v 2.164 2010-08-25 23:13:03 bbos Exp $ -->
3+
<!-- $Id: visuren.src,v 2.165 2010-09-29 15:52:02 bbos Exp $ -->
44
<head>
55
<title>Visual formatting model</title>
66
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
@@ -176,15 +176,13 @@ for the DIV above) has a block-level box inside it (such as the P
176176
above), then we force it to have <em>only</em> block-level boxes
177177
inside it.
178178

179-
<p>
180-
When an inline box contains an in-flow block box, the inline box (and
181-
its inline ancestors within the same line box) are broken around the
182-
block-level box. The line boxes before the break and after the break are
183-
enclosed in anonymous block boxes, and the block-level box becomes a sibling of
184-
those anonymous boxes.
185-
When such an inline box is affected by relative positioning,
186-
the relative positioning also affects the block-level box.
187-
</p>
179+
<p>When an inline box contains an in-flow block box, the inline box
180+
(and its inline ancestors within the same line box) are broken around
181+
the block-level box. The line boxes before the break and after the
182+
break are enclosed in anonymous block boxes, and the block-level box
183+
becomes a sibling of those anonymous boxes. When such an inline box is
184+
affected by relative positioning, the relative positioning also
185+
affects the block-level box contained in the inline box.
188186

189187
<div class="example">
190188
<p>This model would apply in the following example if the following
@@ -240,6 +238,14 @@ CSS2-only user agents may implement this alternative model and still
240238
claim conformance to this part of CSS&nbsp;2.1. This does not apply to UAs
241239
developed after this specification was released.
242240
</p>
241+
242+
<p>Anonymous block boxes are ignored when resolving percentage values
243+
that would refer to it: the closest non-anonymous ancestor box is used
244+
instead. For example, if the child of the anonymous block box inside
245+
the DIV above needs to know the height of its containing block to
246+
resolve a percentage height, then it will use the height of the
247+
containing block formed by the DIV, not of the anonymous block box.
248+
243249
<h3><a name="inline-boxes">Inline-level elements and inline boxes</a></h3>
244250

245251
<p><span class="index-def" title="inline-level element">

0 commit comments

Comments
 (0)