Skip to content

Commit 4b99866

Browse files
committed
[css2] Tantek's changes after Oslo ftf
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402147
1 parent 048b6c9 commit 4b99866

2 files changed

Lines changed: 16 additions & 58 deletions

File tree

css2/visudet.src

Lines changed: 3 additions & 9 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.79 2003-08-27 12:23:16 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.80 2003-08-27 16:15:48 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model details</title>
@@ -78,17 +78,15 @@ containing block.
7878
</li>
7979
</ol>
8080

81-
<ins class="proposed">
8281
<p>In paged media, an absolutely positioned element is positioned
8382
relative to its containing block ignoring any page breaks (as if the
8483
document were continuous). The element may subsequently be broken over
85-
several pages. Page break properties may apply, however if more than one block formatting context on a page attempts to break the page, the results (e.g. where the page is broken, if at all) are undefined.
84+
several pages.
8685
</p>
8786
<p class="note">Note that a
8887
block-level element that is split over several pages may have a different
8988
width on each page and that there may be device-specific limits.
9089
</p>
91-
</ins>
9290

9391
<div class="example">
9492
<p>With no positioning, the containing blocks (C.B.) in the
@@ -198,14 +196,10 @@ user agent if the value of this property is different than 'auto'.
198196
<dd>Specifies a percentage width. The percentage is calculated
199197
with respect to the width of the generated box's
200198
<a href="visuren.html#containing-block">containing block</a>.
201-
If the containing block is intrinsically sized (i.e., it depends on
202-
its content's width) and the current element is not absolutely
203-
positioned, then a percentage <span class="delcurrent">is</span><span class="insproposed">may be</span> interpreted as 'auto'.
204-
<span class="insproposed">
199+
If the containing block's width depends on this element's width, then the resulting layout is undefined in CSS 2.1.
205200
<span class="note">
206201
Note: For absolutely positioned elements whose containing block is based on a block-level element, the percentage is calculated with respect to the width of the <em>padding box</em> of that element. This is a change from CSS1, where the percentage width was always calculated with respect to the <em>content box</em> of the parent element.
207202
</span>
208-
</span>
209203
</dd>
210204
<dt><strong>auto</strong>
211205
</dt>

css2/visuren.src

Lines changed: 13 additions & 49 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: visuren.src,v 2.104 2003-08-27 09:46:13 bbos Exp $ -->
3+
<!-- $Id: visuren.src,v 2.105 2003-08-27 16:15:48 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model</title>
@@ -170,12 +170,9 @@ above), then we force it to have <em>only</em> block boxes
170170
inside it, by wrapping any inline boxes in an anonymous block box.
171171
</p>
172172

173-
<ins class="proposed">
174173
<p>
175-
Block boxes within inline boxes are inserted adjacent to line boxes.
176-
The line boxes are wrapped in anonymous block boxes which contain the contents of the inline boxes, while the block boxes are, in the rendering tree, adjacent to the anonymous block boxes.
174+
When an inline box contains a block box, the inline box (and its inline ancestors within the same line box) are broken around the block. The line boxes before the break and after the break are enclosed in anonymous boxes, and the block box becomes a sibling of those anonymous boxes.
177175
</p>
178-
</ins>
179176

180177
<div class="example">
181178
<p>This model would apply in the following example if the following
@@ -255,11 +252,9 @@ value. In the example, the color of the anonymous inline boxes is
255252
inherited from the P, but the background is transparent.
256253
</p>
257254

258-
<ins class="proposed">
259255
<p>
260-
Whitespace content that would subsequently be collapsed away according to the 'white-space' property does not generate any anonymous inline boxes.
256+
Whitespace content that would subsequently be collapsed away according to the '<span class="propinst-white-space">white-space</span>' property does not generate any anonymous inline boxes.
261257
</p>
262-
</ins>
263258

264259
<p>If it is clear from the context which type of anonymous box is
265260
meant, both anonymous inline boxes and anonymous block boxes are
@@ -274,7 +269,7 @@ simply called anonymous boxes in this specification.
274269
box</dfn></span> behaves as follows:</p>
275270

276271
<ol>
277-
<li class="insproposed">
272+
<li>
278273
If the run-in box contains a <a href="#block-box">block</a>
279274
box, the run-in box becomes a block box.
280275
</li>
@@ -1203,10 +1198,7 @@ the <span class="propinst-clear">'clear'</span> property</h3>
12031198
<!-- #include src=properties/clear.srb -->
12041199

12051200
<p>This property indicates which sides of an element's box(es) may
1206-
<em>not</em> be adjacent to an earlier floating box. (It may be that
1207-
the element itself has floating descendants; the <span
1208-
class="propinst-clear">'clear'</span> property has no effect on
1209-
those<span class="insproposed">, neither does it affect elements in a different block formatting context</span>.)
1201+
<em>not</em> be adjacent to an earlier floating box. The 'clear' property does not consider floats inside the element itself or in other block formatting contexts.
12101202
</p>
12111203

12121204
<p>
@@ -1273,7 +1265,7 @@ and CSS 2.1 the 'clear' property only applies to block-level elements.
12731265
Therefore authors should only use this property on block-level
12741266
elements. If an implementation does support clear on inline elements,
12751267
rather than increasing the top margin as explained above,
1276-
the implementation should <span class="insproposed">force a break and effectively</span> insert one or more empty line boxes <span class="insproposed">(or shifting the new line box downward as described in <a href="#floats">section 9.5</a>)</span> to move the top of the cleared inline's line box to below the respective floating box(es).
1268+
the implementation should force a break and effectively insert one or more empty line boxes (or shifting the new line box downward as described in <a href="#floats">section 9.5</a>) to move the top of the cleared inline's line box to below the respective floating box(es).
12771269
</em>
12781270
</p>
12791271
</div>
@@ -1292,7 +1284,7 @@ span { clear: left }
12921284
respect to its containing block. It is removed from the normal flow
12931285
entirely (it has no impact on later siblings). An absolutely
12941286
positioned box establishes a new containing block for normal flow
1295-
children and <span class="insproposed">absolutely (but not fixed)</span> positioned descendants. However, the contents of an
1287+
children and absolutely (but not fixed) positioned descendants. However, the contents of an
12961288
absolutely positioned element do not flow around any other boxes. They
12971289
may obscure the contents of another box (or be obscured themselves),
12981290
depending on the
@@ -1776,15 +1768,13 @@ and are formatted one on top of the other. Z-axis positions are
17761768
particularly relevant when boxes overlap visually. This section
17771769
discusses how boxes may be positioned along the z-axis.
17781770
</p>
1779-
<ins class="proposed">
17801771
<p>
17811772
The order in which the rendering tree is painted onto the canvas is
17821773
described in terms of stacking contexts. Stacking contexts can
17831774
contain further stacking contexts. A stacking context is atomic from
17841775
the point of view of its parent stacking context; boxes in other
17851776
stacking contexts may not come between any of its boxes.
17861777
</p>
1787-
</ins>
17881778
<p>Each box belongs to one <span class="index-def" title="stacking
17891779
context"><dfn>stacking context</dfn></span>. Each box in a given
17901780
stacking context has an integer <span class="index-def" title="stack
@@ -1796,43 +1786,20 @@ stack levels. Boxes with the same stack level in a stacking context
17961786
are stacked bottom-to-top according to document tree order.
17971787
</p>
17981788

1799-
<del class="current">
1800-
<p>The <a href="conform.html#root">root</a> element creates a <span
1801-
class="index-def" title="root stacking context"><dfn>root stacking
1802-
context</dfn></span>, but other elements may establish <span
1803-
class="index-def" title="local stacking context"><dfn>local stacking
1804-
contexts</dfn></span>. Stacking contexts are inherited. A local
1805-
stacking context is atomic; boxes in other stacking contexts may not
1806-
come between any of its boxes.
1807-
</p>
1808-
1809-
<p>An element that establishes a local stacking context generates a
1810-
box that has two stack levels: one for the stacking context it creates
1811-
(always '0') and one for the stacking context to which it belongs
1812-
(given by the <span class="propinst-z-index">'z-index'</span>
1813-
property).
1814-
</p>
1815-
1816-
<p>An element's box has the same stack level as its parent's box
1817-
unless given a different stack level with the <span
1818-
class="propinst-z-index">'z-index'</span> property.
1819-
</p>
1820-
</del>
1821-
<ins class="proposed">
18221789
<p>
18231790
The root element forms the root stacking context. Other stacking
18241791
contexts are generated by any positioned element (including
18251792
relatively positioned elements) having a computed value of 'z-index'
18261793
other than 'auto'. Stacking contexts are not necessarily related to
18271794
containing blocks. In future levels of CSS, other properties may
1828-
introduce stacking contexts. (For example, '<a href="http://www.w3.org/TR/css3-color/#transparency">opacity</a>'.)
1795+
introduce stacking contexts, for example '<a href="http://www.w3.org/TR/css3-color/#transparency">opacity</a>'.
18291796
</p>
18301797
<p>
1831-
Each stacking context consists of first the background and borders
1832-
of the element forming the stacking context, then the following
1833-
stacking levels:
1798+
Each stacking context consists of the following
1799+
stacking levels (from back to front):
18341800
</p>
18351801
<ol>
1802+
<li>the background and borders of the element forming the stacking context.</li>
18361803
<li>the stacking contexts of descendants with negative stack
18371804
levels.</li>
18381805
<li>a stacking level containing in-flow non-inline-level
@@ -1850,7 +1817,6 @@ actually create new stacking contexts take part in the parent
18501817
stacking context. They are then painted atomically in the inline
18511818
stacking level.
18521819
</p>
1853-
</ins>
18541820

18551821
<div class="html-example">
18561822
<p>In the following example, the stack levels of
@@ -2027,11 +1993,9 @@ corresponds to adding a LRE (U+202A; for 'direction: ltr') or RLE
20271993
<dt><strong>bidi-override</strong></dt>
20281994

20291995
<dd>
2030-
<span class="delcurrent">If the element is inline-level or a block-level element that
2031-
contains only inline-level elements, this creates an override.</span>
2032-
<span class="insproposed">For inline-level elements this creates an override. For
1996+
For inline-level elements this creates an override. For
20331997
block-level elements this creates an override for inline-level
2034-
descendents not within another block.</span>
1998+
descendents not within another block.
20351999
This means that inside the element, reordering is strictly in sequence
20362000
according to the <span class="propinst-direction">'direction'</span>
20372001
property; the implicit part of the bidirectional algorithm is

0 commit comments

Comments
 (0)