Skip to content

Commit a033793

Browse files
committed
[css2] General editing (not much)
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401504
1 parent 603e808 commit a033793

3 files changed

Lines changed: 25 additions & 38 deletions

File tree

css2/colors.src

Lines changed: 14 additions & 27 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: colors.src,v 2.14 1998-04-07 20:28:45 ijacobs Exp $ -->
3+
<!-- $Id: colors.src,v 2.15 1998-04-17 21:04:42 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Colors and backgrounds</TITLE>
@@ -10,7 +10,7 @@
1010

1111
<P>CSS properties allow authors to specify the foreground color and
1212
background of an element. Backgrounds may be colors or
13-
images. Background properties allow authors to position the image,
13+
images. Background properties allow authors to position a background image,
1414
repeat it, and declare whether it should be fixed with respect
1515
to the <a href="visuren.html#viewport">viewport</a> or scrolled
1616
along with the document.
@@ -40,7 +40,7 @@ rendering surface) as either a color or an image. In terms of the <a
4040
href="box.html#box-model">box model</a>, "background" refers to
4141
the background of the <a
4242
href="box.html#box-content-area">content</a> and the <a
43-
href="box.html#box-padding-area">padding</a> area. Border colors
43+
href="box.html#box-padding-area">padding</a> areas. Border colors
4444
and styles are set with the <a
4545
href="box.html#border-properties">border properties</a>. Margins
4646
are always transparent so the background of the parent box always
@@ -72,10 +72,10 @@ HTML document will have a "marble" background:
7272
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"&gt;
7373
&lt;HTML&gt;
7474
&lt;HEAD&gt;
75+
&lt;TITLE&gt;Setting the canvas background&lt;/TITLE&gt;
7576
&lt;STYLE type="text/css"&gt;
7677
BODY { background: url(http://style.com/marble.png) }
7778
&lt;/STYLE&gt;
78-
&lt;TITLE&gt;Setting the canvas background&lt;/TITLE&gt;
7979
&lt;/HEAD&gt;
8080
&lt;BODY&gt;
8181
&lt;P&gt;My background is marble.
@@ -111,17 +111,6 @@ class="propinst-background-position">'background-position'</span>, and
111111
class="value-inst-color">&lt;color&gt;</span></span> value or the keyword
112112
'transparent', to make the underlying colors shine through.
113113

114-
<!--
115-
Values have the following meanings:</P>
116-
117-
<dl>
118-
<dt><span class="index-inst" title="&lt;color&gt;"><span class="value-inst-color"><strong>&lt;color&gt;</strong></span></span>
119-
<dd>Specifies a color name or value.
120-
<dt><strong>transparent</strong>
121-
<dd>The background is transparent, so all underlying colors shine through.
122-
</dl>
123-
-->
124-
125114
<div class="example"><P>
126115
<PRE>
127116
H1 { background-color: #F00 }
@@ -137,7 +126,8 @@ color that will be used when the image is unavailable. When the image
137126
is available, it is rendered on top of the background color. (Thus,
138127
the color is visible in the transparent parts of the image).
139128

140-
<P>The values are <span class="index-inst" title="&lt;uri&gt;"><span
129+
<P>Values for this property are either <span class="index-inst"
130+
title="&lt;uri&gt;"><span
141131
class="value-inst-uri">&lt;uri&gt;</span></span>, to specify the
142132
image, or 'none', when no image is used.
143133

@@ -247,17 +237,17 @@ class="value-inst-percentage"><strong>&lt;percentage&gt;</strong></span></span>
247237
is aligned with the upper left corner of the box's <a
248238
href="box.html#padding-edge">padding edge</a>. A value pair of
249239
'100% 100%' places the lower right corner of the image in the lower
250-
right corner of the box. With a value pair of '14% 84%', the point
240+
right corner of padding area. With a value pair of '14% 84%', the point
251241
14% across and 84% down the image is to be placed at the point 14%
252-
across and 84% down the box.
242+
across and 84% down the padding area.
253243

254244
<dt><span class="index-inst" title="&lt;length&gt;"><span
255245
class="value-inst-length"><strong>&lt;length&gt;</strong></span></span>
256246
<span class="index-inst" title="&lt;length&gt;"><span
257247
class="value-inst-length"><strong>&lt;length&gt;</strong></span></span>
258248
<dd> With a value pair of '2cm 2cm', the upper left corner of the image
259249
is placed 2cm to the right and 2cm below the upper left corner of the
260-
box.
250+
padding area.
261251
<dt>
262252
<dt><strong>top left</strong> and <strong>left top</strong>
263253
<dd>Same as '0% 0%'.
@@ -307,7 +297,7 @@ BODY { background: url(banner.jpeg) bottom } /* 50% 100% */
307297
<span
308298
class="propinst-background-attachment">'background-attachment'</span>
309299
property), the image is placed relative to the viewport instead of the
310-
element's box. For example,
300+
element's padding area. For example,
311301

312302
<div class="example"><P>
313303
<PRE>
@@ -335,12 +325,9 @@ and <span
335325
class="propinst-background-position">'background-position'</span>) at
336326
the same place in the style sheet.
337327

338-
<P><P> The <span class="propinst-background">'background'</span>
339-
property always sets all the individual background properties. <!--The
340-
<span class="propinst-background">'background'</span> property helps
341-
authors remember to specify all aspects of a background which they
342-
might otherwise neglect by using the individual background
343-
properties. -->
328+
<P> The <span class="propinst-background">'background'</span> property
329+
first sets all the individual background properties to their initial
330+
values, then assigns explicit values given in the declaration.
344331

345332
<div class="example"><P>
346333
In the first rule of the following example, only a value for <span
@@ -384,7 +371,7 @@ on current platforms is:
384371

385372
<P>"Applying gamma" means that each of the three R, G and B must be
386373
converted to R'=R<SUP>gamma</SUP>, G'=G<SUP>gamma</SUP>,
387-
B'=B<SUP>gamma</SUP>, before handing to the OS.
374+
B'=B<SUP>gamma</SUP>, before being handed to the OS.
388375

389376
<P>This may rapidly be done by building a 256-element lookup table
390377
once per browser invocation thus:

css2/syndata.src

Lines changed: 3 additions & 3 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: syndata.src,v 2.52 1998-04-16 22:15:26 ijacobs Exp $ -->
3+
<!-- $Id: syndata.src,v 2.53 1998-04-17 21:05:43 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>CSS2 syntax and basic data types</TITLE>
@@ -229,9 +229,9 @@ sets.</em></span> There may be <a href="#whitespace">whitespace</a>
229229
around the statements.
230230

231231
<P>In this specification, the expressions "immediately before" or
232-
"immediately after" mean with no intervening white space or comments.
232+
"immediately after" mean with no intervening whitespace or comments.
233233

234-
<!-- Should comments be defined as white space? -->
234+
<!-- Should comments be defined as whitespace? -->
235235

236236
<H3><span class="index-def" title="at-rule">
237237
<a name="at-rules">At-rules</a></span></H3>

css2/text.src

Lines changed: 8 additions & 8 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: text.src,v 2.13 1998-03-21 00:40:23 ijacobs Exp $ -->
3+
<!-- $Id: text.src,v 2.14 1998-04-17 21:05:50 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Text</TITLE>
@@ -41,7 +41,7 @@ class="propinst-text-indent">'text-indent'</span> may be negative, but
4141
there may be implementation-specific limits.
4242

4343
<div class="example"><P>
44-
The following example causes a 3em text indent.
44+
The following example causes a '3em' text indent.
4545

4646
<PRE>
4747
P { text-indent: 3em }
@@ -316,8 +316,8 @@ Values have the following meanings:</p>
316316
between words in order to justify text.
317317
<dt><span class="index-inst" title="&lt;length&gt;"><span
318318
class="value-inst-length"><strong>&lt;length&gt;</strong></span></span>
319-
<dd>This value indicates inter-word space in
320-
addition to the default space between
319+
<dd>This value indicates inter-word space <em>in
320+
addition to</em> the default space between
321321
words. Values may be negative, but there may be
322322
implementation-specific limits.
323323
</dl>
@@ -390,7 +390,7 @@ href="./selector.html#first-line">first line</a> and <a
390390
href="./selector.html#first-letter">first letter</a> for information
391391
on specially formatting the first letter or line of a paragraph.
392392

393-
<H2><a name="white-space-prop">White space</a>: the <span
393+
<H2><a name="white-space-prop">Whitespace</a>: the <span
394394
class="propinst-white-space">'white-space'</span> property</H2>
395395

396396
<!-- #include src=properties/white-space.srb -->
@@ -400,15 +400,15 @@ href="syndata.html#whitespace">whitespace</a> inside the element is
400400
handled. Values have the following meanings:</P>
401401

402402

403-
<!-- See the HTML definition of white space -IJ -->
403+
<!-- See the HTML definition of whitespace -IJ -->
404404
<dl>
405405
<dt><strong>normal</strong>
406406
<dd>This value allows user agents to collapse sequences
407-
of white space. Line breaks may be created by characters
407+
of whitespace. Line breaks may be created by characters
408408
or elements (e.g., the BR element in HTML).
409409
<dt><strong>pre</strong>
410410
<dd>This value prevents user agents from collapsing sequences
411-
of white space.
411+
of whitespace.
412412
<dt><strong>nowrap</strong>
413413
<dd>This value suppresses line breaks within text
414414
except for those created by other elements (e.g., the

0 commit comments

Comments
 (0)