FFFF [css2] Edited issues 82, 87, 79, 97, 93, 95, 92, 96, 98, 74, 91, and … · w3c/csswg-drafts@dbabd6c · GitHub
Skip to content

Commit dbabd6c

Browse files
committed
[css2] Edited issues 82, 87, 79, 97, 93, 95, 92, 96, 98, 74, 91, and 88 from http://wiki.csswg.org/spec/css2.1
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402880
1 parent dc9ebf8 commit dbabd6c

8 files changed

Lines changed: 235 additions & 70 deletions

File tree

css2/box.src

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN'>
22

33
<html lang="en">
4-
<!-- $Id: box.src,v 1.73 2008-12-02 18:50:38 bbos Exp $ -->
4+
<!-- $Id: box.src,v 1.74 2009-02-03 11:24:59 bbos Exp $ -->
55
<HEAD>
66
<TITLE>Box model</TITLE>
77
</HEAD>
@@ -355,17 +355,9 @@ its first in-flow block-level child's top margin if the element has no
355355
top border, no top padding, and the child has no <a
356356
href="visuren.html#clearance">clearance.</a></p>
357357

358-
<p>The bottom margin of an in-flow block-level element is adjoining to
359-
its last in-flow block-level child's bottom margin when:
360-
<ul>
361-
<li>the element's specified 'height' is 'auto',
362-
363-
<li>the element's used height is the same as it would have been if the
364-
specified values of 'min-height' and 'max-height' were their initial
365-
values
366-
367-
<li>the element has no bottom padding or border.
368-
</ul>
358+
<p>The bottom margin of an in-flow block-level element with a 'height'
359+
of 'auto' is adjoining to its last in-flow block-level child's bottom
360+
margin if the element has no bottom padding or border.
369361

370362
<p>An element's own margins are adjoining if the <span
371363
class="propinst-min-height">'min-height'</span> property is zero, and

css2/changes.src

Lines changed: 163 additions & 11 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.95 2009-01-29 19:05:56 bbos Exp $ -->
3+
<!-- $Id: changes.src,v 2.96 2009-02-03 11:24:59 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Changes</TITLE>
66
</HEAD>
@@ -3022,7 +3022,7 @@ images without reliable resolution information, a size of 1&nbsp;px
30223022
unit per image source pixel must be assumed.</ins></q> to the
30233023
definition of <q>intrinsic dimensions.</q>
30243024

3025-
<!--========================== issue 2 ============================-->
3025+
<!--===================== issue 2 & 82 & 87 =======================-->
30263026

30273027
<h3 id=s.4.1.1><a
30283028
href="/TR/2007/CR-CSS21-20070719/syndata.html#tokenization"> Section
@@ -3037,6 +3037,20 @@ the grammar rule
30373037
start with a dash (-), but the dash was already allowed because of the
30383038
definition of <q>IDENT.</q>
30393039

3040+
<p><span class=date>[2009-02-02]</span> Change <del>U</del> to
3041+
<ins>u</ins> in token UNICODE-RANGE. (It means the same, but seems to
3042+
avoid confusion.)
3043+
3044+
<p><span class=date>[2009-02-02]</span> Clarify where comments are
3045+
allowed:
3046+
3047+
<blockquote>
3048+
<p>COMMENT tokens do not occur in the grammar (to keep it readable),
3049+
but any number of these tokens may appear anywhere <del>between</del>
3050+
<ins>outside</ins> other tokens. <ins>(Note, however, that a comment
3051+
before or within the @charset rule disables the @charset.)</ins>
3052+
</blockquote>
3053+
30403054
<!--========================== issue 90 ===========================-->
30413055

30423056
<h3 id="s.4.1.2.2"><a
@@ -3163,7 +3177,6 @@ Section&nbsp;4.3.5 Counters</a></h3>
31633177
in <q>Counters are denoted by <ins>case-sensitive</ins>
31643178
identifiers</q>.
31653179

3166-
31673180
<!--========================== issue 38, 81 =======================-->
31683181

31693182
<h3 id="s.5.8.1"><a
@@ -3301,18 +3314,16 @@ Section 8.3.1 Collapsing margins</a></h3>
33013314
position of the top border edge is determined by assuming the element
33023315
has a non-zero <em>bottom</em> (not: top) border.
33033316

3304-
<!--========================== issue 14 ===========================-->
3317+
<!--======================== issue 14 & 79 ========================-->
33053318

33063319
<h3 id="s.8.3.1a"><a
33073320
href="/TR/2007/CR-CSS21-20070719/box.html#collapsing-margins">
33083321
Section 8.3.1 Collapsing margins</a></h3>
33093322

3310-
<p><span class=date>[2008-10-13]</span> Rephrased the rule for
3311-
adjoining margins so that the bottom margin of an in-flow block-level
3312-
element is adjoining to its last in-flow block-level child's bottom
3313-
margin if the element's 'min-height' is less then <em>or equal to</em>
3314-
its intrinsic height and 'max-height' is greater than <em>or equal
3315-
to</em> its intrinsic height.
3323+
<p><span class=date>[2009-02-02]</span> Rephrased the rule for
3324+
adjoining margins so that the 'min-height' and 'max-height' of an
3325+
element have no influence over whether the element's bottom margin is
3326+
adjoining to its last child's bottom margin.
33163327

33173328
<!--========================== issue 70 ===========================-->
33183329

@@ -3407,6 +3418,16 @@ Section&nbsp;9.5 Floats</a></h3>
34073418
may be misinterpreted: &ldquo;the float's parent<del>'s</del> stacking
34083419
context.&rdquo;
34093420

3421+
<!--========================== issue 97 ===========================-->
3422+
3423+
<h3 id="s.9.5.2"><a
3424+
href="/TR/2007/CR-CSS21-20070719/visuren.html#flow-control">
3425+
Section&nbsp;9.5.2 Controlling flow next to floats: the 'clear'
3426+
property</a></h3>
3427+
3428+
<p><span class=date>[2009-02-02]</span> Add an example of negative
3429+
clearance after the first note.
3430+
34103431
<!--========================== issue 77 ===========================-->
34113432

34123433
<h3 id="s.9.6.1"><a
@@ -3449,6 +3470,29 @@ follows:
34493470
</ol>
34503471
</blockquote>
34513472

3473+
<!--========================== issue 93 ===========================-->
3474+
3475+
<h3 id="s.10.1"><a
3476+
href="/TR/2007/CR-CSS21-20070719/visudet.html#containing-block-details">
3477+
Section&nbsp;10.1 Definition of "containing block"</a></h3>
3478+
3479+
<p><span class=date>[2009-02-02]</span> Rephrase first bullet point to
3480+
make easier to read:
3481+
3482+
<blockquote>
3483+
<p><del>The containing block in which the root element lives is a
3484+
rectangle with the dimensions of the viewport, anchored at the canvas
3485+
origin for continuous media, and the page area for paged media. This
3486+
containing block is called the initial containing block.</del>
3487+
</blockquote>
3488+
3489+
<blockquote>
3490+
<p><ins>The containing block in which the root element lives is a
3491+
rectangle called the initial containing block. For continuous media,
3492+
it has the dimensions of the viewport and is anchored at the canvas
3493+
origin; it is the page area for paged media.</ins>
3494+
</blockquote>
3495+
34523496
<!--========================== issue 12b ==========================-->
34533497

34543498
<h3 id="s.10.3.2"><a
@@ -3762,10 +3806,21 @@ new line box. Note: This interaction may be more precisely defined in
37623806
a future level of CSS.</ins>
37633807
</blockquote>
37643808

3809+
<!--========================== issue 95 ===========================-->
3810+
3811+
<h3 id="s.13.2.1.1"><a
3812+
href="/TR/2007/CR-CSS21-20070719/page.html#oversized-page-box">
3813+
Section&nbsp;13.2.1.1 Rendering page boxes that do not fit a target
3814+
sheet</a></h3>
3815+
3816+
<p><span class=date>[2009-02-02]</span> <p>Remove sections 13.2.1.1
3817+
and 13.2.1.2. (The described situations cannot occur in CSS&nbsp;2.1,
3818+
because CSS&nbsp;2.1 doesn't have a 'size' property.)
3819+
37653820
<!--========================== issue 76 ===========================-->
37663821

37673822
<h3 id="s.13.2.3"><a
3768-
href="/TR/2007/CR-CSS21-20070719/page.htmloutside-page-box">
3823+
href="/TR/2007/CR-CSS21-20070719/page.html#outside-page-box">
37693824
Section&nbsp;13.2.3 Content outside the page box</a></h3>
37703825

37713826<p><span class=date>[2008-11-03]</span> Clarified what locations are
@@ -3802,6 +3857,17 @@ Section&nbsp;13.3.1 Page break properties: 'page-break-before',
38023857
'page-break-before', 'page-break-after' and 'page-break-inside' to
38033858
other elements than block-level ones.
38043859

3860+
<!--========================== issue 92 ===========================-->
3861+
3862+
<h3 id="s.13.3.2"><a
3863+
href="/TR/2007/CR-CSS21-20070719/page.html#break-inside">
3864+
Section&nbsp;13.3.2 Breaks inside elements: 'orphans',
3865+
'widows'</a></h3>
3866+
3867+
<p><span class=date>[2009-02-02]</span> &ldquo;Paragraph&rdquo; is not
3868+
a defined term. Change <del>of a paragraph</del> to <ins>in a block
3869+
element</ins> (twice).
3870+
38053871
<!--============== issue 44b = ISSUE-35b ==========================-->
38063872

38073873
<h3 id="s.13.3.3"><a
@@ -3812,6 +3878,57 @@ Section&nbsp;13.3.3 Allowed page breaks</a></h3>
38123878
property of all ancestors is checked for page-breaking restrictions,
38133879
not just that of the breakpoint's parent.</p>
38143880

3881+
<!--========================== issue 96 ===========================-->
3882+
3883+
<h3 id="s.13.3.3a"><a
3884+
href="/TR/2007/CR-CSS21-20070719/page.html#allowed-page-breaks">
3885+
Section&nbsp;13.3.3 Allowed page breaks</a></h3>
3886+
3887+
<p><span class=date>[2009-02-02]</span> Remove possible confusion:
3888+
3889+
<blockquote>
3890+
<p>Rule D: In addition, breaking at (2) is allowed only if the
3891+
'page-break-inside' property of <ins>the element and</ins> all
3892+
<ins>its</ins> ancestors is 'auto'.
3893+
</blockquote>
3894+
3895+
<!--========================== issue 98 ===========================-->
3896+
3897+
<h3 id="s.13.3.3b"><a
3898+
href="/TR/2007/CR-CSS21-20070719/page.html#allowed-page-breaks">
3899+
Section&nbsp;13.3.3 Allowed page breaks</a></h3>
3900+
3901+
<p><span class=date>[2009-02-02]</span> Top margins do <em>not</em>
3902+
disappear at a page break that is forced by a 'page-break-after' or
3903+
'page-break-before'. Correct the first bullet to:
3904+
3905+
<blockquote>
3906+
<p>When an <ins>unforced</ins> page break occurs here, the used values
3907+
of the relevant 'margin-top' and 'margin-bottom' properties are set to
3908+
'0'. <ins>When a forced page break occurs here, the used value of the
3909+
relevant 'margin-bottom' property is set to '0'; the relevant
3910+
'margin-top' used value may either be set to '0' or retained.</ins>
3911+
</blockquote>
3912+
3913+
<p>And add the following note:
3914+
3915+
<blockquote>
3916+
<p><ins> Note: It is expected that CSS3 will specify that the relevant
3917+
'margin-top' applies (i.e., is not set to '0') after a forced page
3918+
break.</ins>
3919+
</blockquote>
3920+
3921+
<!--========================== issue 74 ===========================-->
3922+
3923+
<h3 id="s.13.3.5"><a
3924+
href="/TR/2007/CR-CSS21-20070719/page.html#best-page-breaks">
3925+
Section&nbsp;13.3.5 "Best" page breaks</a></h3>
3926+
3927+
<p><span class=date>[2009-02-02]</span> Remove the advice to user
3928+
agents to avoid breaking inside elements with borders, inside tables
3929+
or inside floating elements; add the advice to avoid breaking inside
3930+
replaced elements.
3931+
38153932
<!--========================== issue 80 ===========================-->
38163933

38173934
<h3 id="s.14.2"><a
@@ -3919,6 +4036,24 @@ td[nowrap] { white-space: nowrap }
39194036
<del>:before,:after { white-space: pre-line }</del></pre>
39204037
</blockquote>
39214038

4039+
<!--========================== issue 91 ===========================-->
4040+
4041+
<h3 id="s.16.6.1"><a
4042+
href="/TR/2007/CR-CSS21-20070719/text.html#white-space-model">
4043+
Section&nbsp;16.6.1 The 'white-space' processing model</a></h3>
4044+
4045+
<p><span class=date>[2009-02-02]</span> Collapsing of white space does
4046+
not remove any line breaking oppportunities. Add the following
4047+
clarification:
4048+
4049+
<blockquote>
4050+
<p>Then, the entire block is rendered. Inlines are laid out, taking
4051+
bidi reordering into account, and wrapping as specified by the
4052+
'white-space' property. <ins>When wrapping, line breaking
4053+
opportunities are determined based on the text prior to the white
4054+
space collapsing steps above.</ins>
4055+
</blockquote>
4056+
39224057
<!--========================== issue 11a ==========================-->
39234058

39244059
<h3 id="s.17.2.1"><a
@@ -3944,6 +4079,23 @@ anonymous inline box that contains only white space, then it is
39444079
treated as if it has 'display: none'.</ins>
39454080
</blockquote>
39464081

4082+
<!--========================== issue 88 ===========================-->
4083+
4084+
<h3 id="s.17.5.4"><a
4085+
href="/TR/2007/CR-CSS21-20070719/tables.html#model">
4086+
Section&nbsp;17.4 Tables in the visual formatting model</a></h3>
4087+
4088+
<p><span class=date>[2009-02-02]</span> The anonymous block containing
4089+
the table and its caption establishes a block formatting context:
4090+
4091+
<blockquote>
4092+
<p>The anonymous box is a 'block' box if the table is block-level, and
4093+
an 'inline-block' box if the table is inline-level <del>except that
4094+
this block is never considered as a block for 'run-in' interaction,
4095+
and that </del> <ins>The anonymous box establishes a block formatting
4096+
context.</ins> The table box (not the anonymous box) is used when
4097+
doing baseline vertical alignment for an 'inline-table'.
4098+
39474099
<!--========================== issue 20 ===========================-->
39484100

39494101
<h3 id="s.17.5.4"><a

css2/page.src

Lines changed: 22 additions & 29 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: page.src,v 2.56 2008-11-03 16:46:07 bbos Exp $ -->
3+
<!-- $Id: page.src,v 2.57 2009-02-03 11:24:59 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Paged media</TITLE>
66
</HEAD>
@@ -118,26 +118,11 @@ the paper cutter.
118118

119119

120120

121-
<h4><a name="oversized-page-box">Rendering page boxes that do not fit a target sheet</a></h4>
121+
<h4><a name="oversized-page-box">[This section intentionally left blank]</a></h4>
122122

123-
<P>If a page box does not fit the target sheet dimensions, the
124-
user agent may choose to:</p>
125123

126-
<UL>
127-
<LI>Rotate the page box 90&deg; if this will make the page box fit.
128-
<LI>Scale the page to fit the target.
129-
</UL>
124+
<h4><a name="positioning-page-box">[This section intentionally left blank]</a></h4>
130125

131-
<P>The user agent should consult the user before performing these
132-
operations.
133-
134-
<h4><a name="positioning-page-box">Positioning the page box on the sheet</a></h4>
135-
136-
<P>When the page box is smaller than the target size, the user agent
137-
is free to place the page box anywhere on the sheet. However, it is
138-
recommended that the page box be centered on the sheet since this will
139-
align double-sided pages and avoid accidental loss of information that
140-
is printed near the edge of the sheet.
141126

142127

143128
<h3><a name="page-selectors">Page selectors: selecting left, right, and first pages</a></H3>
@@ -306,9 +291,9 @@ class="propinst-widows">'widows'</span></h3>
306291
<!-- #include src=properties/widows.srb -->
307292

308293
<P>The <span class="propinst-orphans">'orphans'</span> property
309-
specifies the minimum number of lines of a paragraph that must be left
294+
specifies the minimum number of lines in a block element that must be left
310295
at the bottom of a page. The <span class="propinst-widows">'widows'</span> property specifies the minimum
311-
number of lines of a paragraph that must be left at the top of a page.
296+
number of lines in a block element that must be left at the top of a page.
312297
Examples of how they are used to control page breaks are given below.
313298

314299
<P>For information about paragraph formatting, please consult the
@@ -320,16 +305,26 @@ section on <a href="visuren.html#line-box">line boxes</a>.
320305

321306
<ol>
322307
<li>
323-
In the vertical margin between block boxes. When a page
308+
In the vertical margin between block boxes. When an unforced page
324309
break occurs here, the <a href="cascade.html#used-value">used
325-
values</a> of the relevant
326-
<span class="propinst-margin-top">'margin-top'</span>
327-
and <span class="propinst-margin-bottom">'margin-bottom'</span>
328-
properties are set to '0'.
310+
values</a> of the relevant <span
311+
class="propinst-margin-top">'margin-top'</span> and <span
312+
class="propinst-margin-bottom">'margin-bottom'</span> properties are
313+
set to '0'. When a forced page break occurs here, the used value of
314+
the relevant <span
315+
class="propinst-margin-bottom">'margin-bottom'</span> property is set
316+
to '0'; the relevant <span
317+
class="propinst-margin-top">'margin-top'</span> used value may either
318+
be set to '0' or retained.
319+
329320
<li>Between <a href="visuren.html#line-box">line boxes</a>
330321
inside a <a href="visuren.html#block-box">block</a> box.
331322
</ol>
332323

324+
<p class=note>Note: It is expected that CSS3 will specify that the
325+
relevant 'margin-top' applies (i.e., is not set to '0') after a forced
326+
page break.
327+
333328
<!-- What about line boxes next to a float? -IJ -->
334329

335330
<p>These breaks are subject to the following rules:
@@ -359,7 +354,7 @@ the value of <span class="propinst-widows">'widows'</span> or more.
359354

360355
<li><strong>Rule D:</strong> In addition, breaking at (2) is allowed only if the <span
361356
class="propinst-page-break-inside">'page-break-inside'</span> property
362-
of all ancestors is 'auto'.
357+
of the elements and all its ancestors is 'auto'.
363358
</ul>
364359

365360
<p>If the above doesn't provide enough break points to keep content
@@ -391,9 +386,7 @@ that they are sometimes contradictory):</p>
391386
<li>Break as few times as possible.
392387
<li>Make all pages that don't end with a forced break appear to have about
393388
the same height.
394-
<li>Avoid breaking inside a block that has a border.
395-
<li>Avoid breaking inside a table.
396-
<li>Avoid breaking inside a floated element
389+
<li>Avoid breaking inside a replaced element.
397390
</ul>
398391

399392
<div class="example"><P>

0 commit comments

Comments
 (0)