Skip to content

Commit a398e1c

Browse files
committed
[css2] Issues 69, 84, 111, 127, 128, 131, 136, and 141 from
http://wiki.csswg.org/spec/css2.1 --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402972
1 parent 3cc2821 commit a398e1c

7 files changed

Lines changed: 277 additions & 52 deletions

File tree

css2/changes.src

Lines changed: 178 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: changes.src,v 2.114 2009-08-31 17:39:31 bbos Exp $ -->
3+
<!-- $Id: changes.src,v 2.115 2010-04-19 16:12:36 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Changes</TITLE>
66
</HEAD>
@@ -4051,7 +4051,7 @@ status of a draft.
40514051

40524052
<!--========================== issue 123 =========================-->
40534053

4054-
<h3 id="s.4.2"><a
4054+
<h3 id="s.4.2b"><a
40554055
href="/TR/2009/CR-CSS2-20090423/syndata.html#parsing-errors">
40564056
Section&nbsp;4.2 Rules for handling parsing errors</a></h3>
40574057

@@ -4070,7 +4070,7 @@ first.
40704070

40714071
<!--========================== issue 89 ==========================-->
40724072

4073-
<h3 id="s.13.3.3"><a
4073+
<h3 id="s.13.3.3c"><a
40744074
href="/TR/2009/CR-CSS2-20090423/page.html#allowed-page-breaks">
40754075
Section&nbsp;13.3.3 Allowed page breaks</a></h3>
40764076

@@ -4157,7 +4157,7 @@ class="propinst-height">'height'</span> on row groups.</ins>
41574157

41584158
<!--========================== issue 124 =========================-->
41594159

4160-
<h3 id="s.G"><a
4160+
<h3 id="s.Ga"><a
41614161
href="/TR/2009/CR-CSS2-20090423/grammar.html">
41624162
Appendix&nbsp;G. Grammar of CSS 2.1</a></h3>
41634163

@@ -4166,6 +4166,180 @@ grammar. (The ambiguities only affected spaces and were harmless.)
41664166

41674167
<!--===============================================================-->
41684168

4169+
<h2><a name=errata3>Errata since the Candidate Recommendation of
4170+
September 2009</a></h2>
4171+
4172+
<p>These are the errata for <a
4173+
href="http://www.w3.org/TR/2009/CR-CSS2-20090908">CSS level&nbsp;2
4174+
revision&nbsp;1, CR version of 8&nbsp;September 2009.</a> These
4175+
corrections have the status of a draft.
4176+
4177+
<!--========================== issue 128 ==========================-->
4178+
4179+
<h3 id="t.3.1"><a
4180+
href="/TR/2009/CR-CSS2-20090908/conform.html#defs">
4181+
Section&nbsp;3.1 Definitions</a></h3>
4182+
4183+
<p><span class=date>[2010-04-19]</span> Add a clarification to the
4184+
definition of replaced element:
4185+
4186+
<blockquote>
4187+
<p>The content of replaced elements is not considered in the CSS
4188+
rendering model.
4189+
</blockquote>
4190+
4191+
<p>(Previously, the definition only said that the content was
4192+
&ldquo;outside the scope of CSS.&rdquo;)
4193+
4194+
<!--========================== issue 136 ==========================-->
4195+
4196+
<h3 id="t.4.1.2.2"><a
4197+
href="/TR/2009/CR-CSS2-20090908/syndata.html#vendor-keyword-history">
4198+
Section&nbsp;4.1.2.2 Informative Historical Notes</a></h3>
4199+
4200+
<p><span class=date>[2010-04-19]</span> Add &ldquo;-tc-&rdquo; to the
4201+
list of existing vendor prefixes.
4202+
4203+
<!--========================== issue 141 ==========================-->
4204+
4205+
<h3 id="t.9.2.3"><a
4206+
href="/TR/2009/CR-CSS2-20090908/syndata.html#length-units">
4207+
Section&nbsp;4.3.2 Lengths</a></h3>
4208+
4209+
<p><span class=date>[2010-04-19]</span> Make explicit that 'ex', when
4210+
used in the 'font-size' property, refers to the <em>parent
4211+
element's</em> 'ex' (just as 'em' refers to the parent's 'em' in that
4212+
case.)
4213+
4214+
<!--========================== issue 128 ==========================-->
4215+
4216+
<h3 id="t.9.2.3a"><a
4217+
href="/TR/2009/CR-CSS2-20090908/visuren.html#run-in">
4218+
Section&nbsp;9.2.3 Run-in boxes</a></h3>
4219+
4220+
<p><span class=date>[2010-04-19]</span> Make the definition of
4221+
'run-in' more precise:
4222+
4223+
<blockquote>
4224+
<p><del>A <dfn>run-in box</dfn> behaves as follows:</del>
4225+
4226+
<ol>
4227+
<li><del>If the run-in box contains a block box, the run-in box
4228+
becomes a block box.</del>
4229+
4230+
<li><del>If a sibling block box (that does not float and is not
4231+
absolutely positioned) follows the run-in box, the run-in box becomes
4232+
the first inline box of the block box. A run-in cannot run in to a
4233+
block that already starts with a run-in or that itself is a
4234+
run-in.</del>
4235+
4236+
<li><del>Otherwise, the run-in box becomes a block box.</del>
4237+
</ol>
4238+
4239+
<p><ins>A <dfn>run-in element</dfn> (or pseudo-element) <var>A</var>
4240+
behaves as follows:</ins>
4241+
4242+
<ol>
4243+
<li><ins>If <var>A</var> has any children that inhibit run-in
4244+
behavior (see below), then <var>A</var> is rendered as if it had
4245+
'display: block'.</ins>
4246+
4247+
<li><ins>Let <var>B</var> be the first of <var>A</var>'s following
4248+
siblings that is neither floating nor absolutely positioned nor has
4249+
'display: none'. If <var>B</var> exists and has a specified value
4250+
for 'display' of 'block' or 'list-item' and is not replaced, then
4251+
<var>A</var> is rendered as an 'inline' element at the start of
4252+
<var>B</var>'s principal box. Note: <var>A</var> is rendered before
4253+
<var>B</var>'s ':before' pseudo-element, if any. See 12.1.</ins>
4254+
4255+
<li><ins>Otherwise, <var>A</var> is rendered as if it had 'display:
4256+
block'.</ins>
4257+
</ol>
4258+
4259+
<p><ins>In the above, "siblings" and "children" include both normal
4260+
elements and :before/:after pseudo-elements.</ins>
4261+
4262+
<p><ins>An element or pseudo-element <var>C</var> <dfn>inhibits run-in
4263+
behavior</dfn> if one of the following is true. (Note that the
4264+
definition is recursive.)</ins>
4265+
4266+
<ol>
4267+
<li><ins><var>C</var> is not floating and not absolutely positioned
4268+
and the computed value of its 'display' is one of 'block',
4269+
'list-item', 'table' or 'run-in'.</ins>
4270+
4271+
<li><ins><var>C</var> has a computed value for 'display' of 'inline'
4272+
and it has one or more children that inhibit run-in behavior. (Where
4273+
"children" includes both normal elements and :before/:after
4274+
pseudo-elements.)</ins>
4275+
</ol>
4276+
</blockquote>
4277+
4278+
<p>It remains undefined how 'run-in' and ':first-line' interact:
4279+
4280+
<blockquote>
4281+
<p><ins>It is undefined in CSS&nbsp;2.1 if a run-in inherits from a
4282+
':first-line' pseudo-element.</ins>
4283+
</blockquote>
4284+
4285+
<!--========================== issue 69 ===========================-->
4286+
4287+
<h3 id="t.9.6.1"><a
4288+
href="/TR/2009/CR-CSS2-20090908/visuren.html#fixed-positioning">
4289+
Section&nbsp;9.6.1 Fixed positioning</a></h3>
4290+
4291+
<p><span class=date>[2010-04-19]</span> 'Fixed' backgrounds in paged
4292+
media are positioned relative to the page box (and thus repeat on
4293+
every page, just like 'fixed' elements). The position of fixed
4294+
backgrounds in paged media was previously undefined.
4295+
4296+
<!--========================== issue 111 ==========================-->
4297+
4298+
<h3 id="t.15.6"><a
4299+
href="/TR/2009/CR-CSS2-20090908/fonts.html#font-boldness">
4300+
Section&nbsp;15.6 Font boldness: the 'font-weight' property</a></h3>
4301+
4302+
<p><span class=date>[2010-04-19]</span> The meaning of the keywords
4303+
'bolder' and 'lighter' no longer depends on both the inherited weight
4304+
and the actually used font, but only on the inherited weight.
4305+
4306+
<!--========================== issue 84 ===========================-->
4307+
4308+
<h3 id="t.16.4"><a
4309+
href="/TR/2009/CR-CSS2-20090908/text.html#spacing-props">
4310+
Section&nbsp;16.4 Letter and word spacing: the 'letter-spacing' and
4311+
'word-spacing' properties</a></h3>
4312+
4313+
<p><span class=date>[2010-04-19]</span> Word spacing does not affect
4314+
fixed-width spaces. Change:
4315+
4316+
<blockquote>
4317+
<p>Word spacing affects each space (U+0020)<del>,</del><ins> and</ins>
4318+
non-breaking space (U+00A0) <del>and ideographic space (U+3000)</del>,
4319+
left in the text after the white space processing rules have been
4320+
applied. <ins>The effect of the property on other word-separator
4321+
characters is undefined. However general punctuation, characters with
4322+
zero advance width (such as the zero with space U+200B) and
4323+
fixed-width spaces (such as U+3000 and U+2000 through U+200A) are not
4324+
affected.</ins>
4325+
</blockquote>
4326+
4327+
<!--========================== issue 127 ==========================-->
4328+
4329+
<h3 id="t.17.4"><a
4330+
href="/TR/2009/CR-CSS2-20090908/tables.html#model">
4331+
Section&nbsp;17.4 Tables in the visual formatting model</a></h3>
4332+
4333+
<p><span class=date>[2010-04-19]</span> The caption of the image still
4334+
describes the image as it was in the previous version. Change:
4335+
4336+
<blockquote>
4337+
<p>Diagram of a table with a caption above it<del>; the top margin of
4338+
the caption is collapsed with the top margin of the table</del>.
4339+
</blockquote
4340+
4341+
<!--===============================================================-->
4342+
41694343
</BODY>
41704344
</HTML>
41714345

css2/conform.src

Lines changed: 4 additions & 1 deletion
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: conform.src,v 2.86 2009-05-13 12:59:58 bbos Exp $ -->
3+
<!-- $Id: conform.src,v 2.87 2010-04-19 16:12:36 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Conformance: requirements and recommendations</TITLE>
66

@@ -141,6 +141,9 @@ document changed intrinsic size depending on the user's bank balance,
141141
then the UA might want to act as if that resource had no intrinsic
142142
dimensions.
143143

144+
<p>The content of replaced elements is not considered in the CSS
145+
rendering model.
146+
144147
<dt><strong><span class="index-def" title="intrinsic
145148
dimensions"><a name="intrinsic">Intrinsic dimensions</a></span></strong>
146149

css2/fonts.src

Lines changed: 28 additions & 18 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: fonts.src,v 2.97 2009-08-31 17:39:31 bbos Exp $ -->
3+
<!-- $Id: fonts.src,v 2.98 2010-04-19 16:12:36 bbos Exp $ -->
44
<head>
55
<title>Fonts</title>
66
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
@@ -512,24 +512,34 @@ value to "Ice Prawn ExtraBlack".</p>
512512
</table>
513513
</div>
514514

515+
<p>Values of 'bolder' and 'lighter' indicate values relative to the
516+
weight of the parent element. Based on the inherited weight value,
517+
the weight used is calculated using the chart below. Child elements
518+
inherit the calculated weight, not a value of 'bolder' or 'lighter'.
515519

516-
<p>Since the intent of the relative keywords 'bolder' and 'lighter' is
517-
to darken or lighten the face <em>within the family</em> and because a
518-
family may not have faces aligned with all the symbolic weight values,
519-
the matching of 'bolder' is to the next darker face available on the
520-
client within the family and the matching of 'lighter' is to the next
521-
lighter face within the family. To be precise, the meaning of the
522-
relative keywords 'bolder' and 'lighter' is as follows:
523-
</p>
524-
<ul>
525-
<li>'bolder' selects the next weight that is assigned to a font that
526-
is darker than the inherited one.
527-
</li>
528-
<li>'lighter' is similar, but works in the opposite direction: it
529-
selects the next lighter keyword with a different font from the
530-
inherited one.
531-
</li>
532-
</ul>
520+
<table summary="The keywords bolder and lighter stand for a specific
521+
weight as a function of the inherited weight, as defined by this
522+
table.">
523+
<caption>The meaning of 'bolder' and 'lighter'</caption>
524+
<thead>
525+
<tr><th>Inherited value <th>bolder <th>lighter
526+
<tbody>
527+
<tr><td>100 <td>400 <td>100
528+
<tr><td>200 <td>400 <td>100
529+
<tr><td>300 <td>400 <td>100
530+
<tr><td>400 <td>700 <td>100
531+
<tr><td>500 <td>700 <td>100
532+
<tr><td>600 <td>900 <td>400
533+
<tr><td>700 <td>900 <td>400
534+
<tr><td>800 <td>900 <td>700
535+
<tr><td>900 <td>900 <td>700
536+
</table>
537+
538+
<p>The table above is equivalent to selecting the next relative bolder
539+
or lighter face, given a font family containing normal and bold faces
540+
along with a thin and a heavy face. Authors who desire finer control
541+
over the exact weight values used for a given element should use
542+
numerical values instead of relative weights.
533543

534544
<p>There is no guarantee that there will be a darker face for each of
535545
the 'font-weight' values; for example, some fonts may have only a

css2/syndata.src

Lines changed: 8 additions & 2 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: syndata.src,v 2.172 2009-08-31 17:33:46 bbos Exp $ -->
3+
<!-- $Id: syndata.src,v 2.173 2010-04-19 16:12:36 bbos Exp $ -->
44
<head>
55
<title>Syntax and basic data types</title>
66
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
@@ -229,6 +229,7 @@ href="#parsing-errors">rules for handling parsing errors</a>. However, because t
229229
<tr><td><code>-hp-</code></td><td>Hewlett Packard</td></tr>
230230
<tr><td><code>-ro-</code></td><td>Real Objects</td></tr>
231231
<tr><td><code>-rim-</code></td><td>Research In Motion</td></tr>
232+
<tr><td><code>-tc-</code></td><td>Tall Components</td></tr>
232233
</tbody>
233234
</table>
234235

@@ -860,7 +861,12 @@ quad-width in typographic texts.)
860861
</p>
861862
<p>The <span class="index-def" title="x-height|ex (unit)"><a
862863
name="ex">'ex'</a></span> unit is defined by the element's first available
863-
font. The <span class="descinst-x-height">'x-height'</span> is so called
864+
font.
865+
The exception is when 'ex' occurs in the value of the <span
866+
class="propinst-font-size">'font-size'</span> property, in which case
867+
it refers to the 'ex' of the parent element.
868+
869+
<p>The <span class="descinst-x-height">'x-height'</span> is so called
864870
because it is often equal to the height of the lowercase "x". However,
865871
an 'ex' is defined even for fonts that do not contain an "x".</p>
866872
<p>The x-height of a font can be found in different ways. Some fonts

css2/tables.src

Lines changed: 2 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: tables.src,v 2.117 2010-01-26 23:48:48 fantasai Exp $ -->
3+
<!-- $Id: tables.src,v 2.118 2010-04-19 16:12:36 bbos Exp $ -->
44
<head>
55
<title>Tables</title>
66
</head>
@@ -476,9 +476,7 @@ values for those properties.
476476
<p><img src="images/table_container.png" alt="A table with a caption above
477477
it">
478478

479-
<p class="caption">Diagram of a table with a caption above it; the
480-
top margin of the caption is collapsed with the top margin of the
481-
table.
479+
<p class="caption">Diagram of a table with a caption above it.
482480
</div>
483481

484482
<h3><a name="caption-position">Caption position and alignment</a></h3>

css2/text.src

Lines changed: 8 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: text.src,v 2.70 2009-08-06 21:05:30 dbaron Exp $ -->
3+
<!-- $Id: text.src,v 2.71 2010-04-19 16:12:37 bbos Exp $ -->
44
<head>
55
<title>Text</title>
66
<meta http-equiv="Content-Style-Type" content="text/css">
@@ -323,9 +323,13 @@ implementation-specific limits. </dd>
323323
<p>Word spacing algorithms are user agent-dependent. Word spacing is
324324
also influenced by justification (see the <span
325325
class="propinst-text-align">'text-align'</span> property).
326-
Word spacing affects each space (U+0020), non-breaking space (U+00A0),
327-
and ideographic space (U+3000) left in the text after the white space
328-
processing rules have been applied.</p>
326+
Word spacing affects each space (U+0020) and non-breaking space
327+
(U+00A0), left in the text after the white space processing rules have
328+
been applied. The effect of the property on other word-separator
329+
characters is undefined. However general punctuation, characters with
330+
zero advance width (such as the zero with space U+200B) and
331+
fixed-width spaces (such as U+3000 and U+2000 through U+200A) are not
332+
affected.
329333

330334
<div class="example"><p>
331335
In this example, the word-spacing between each word in H1 elements is

0 commit comments

Comments
 (0)