Skip to content

Commit 16edc2f

Browse files
committed
[css2] Tantek's edits.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402116
1 parent f385aa0 commit 16edc2f

1 file changed

Lines changed: 28 additions & 20 deletions

File tree

css2/colors.src

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: colors.src,v 2.33 2003-07-21 14:39:28 bbos Exp $ -->
3+
<!-- $Id: colors.src,v 2.34 2003-08-04 12:53:20 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Colors and backgrounds</title>
77
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
8-
<!-- Changed by: Tantek Celik, 2003-07-18 -->
8+
<!-- Changed by: Tantek Celik, 2003-07-29 -->
99
<style type="text/css">
1010
.current,.proposed,span.delcurrent { background:#feb }
11-
ins.proposed,span.insproposed { background:#bfb }
11+
ins.proposed,span.insproposed,p.insproposed { background:#bfb }
1212
del.proposed,span.delproposed { background:#fbb }
13-
span.insproposed { text-decoration:underline }
13+
span.insproposed,p.insproposed { text-decoration:underline }
1414
span.delproposed,span.delcurrent { text-decoration:line-through }
1515
body>del,body>ins {display:block}
1616
</style>
@@ -62,55 +62,64 @@ background will shine through by default because of the initial
6262
class="propinst-background-color">'background-color'</span>.
6363
</p>
6464
<del class="current">
65-
<p>The background of the box generated by the root element covers the
66-
entire <a href="intro.html#canvas">canvas</a>.
65+
<p>
66+
The background of the box generated by the root element covers the
67+
entire <a href="intro.html#canvas">canvas</a>,
68+
anchored at the same point as it would be if the root
69+
element were a block level element.
6770
</p>
6871
</del>
6972
<ins class="proposed">
7073
<p>
71-
The background of the canvas is the same as the background of the
72-
root element, anchored at the same point as it would be if the root
73-
element was a block level element.
74+
The background of the <a href="intro.html#canvas">canvas</a> covers the entire canvas and is the background of the root element, anchored at the same point as it would be if it was painted only for the root element itself. The root element does not paint this background again.
7475
</p>
7576
</ins>
77+
7678
<p>For HTML documents, however, we recommend that authors specify the
7779
background for the BODY element rather than the HTML element. User
7880
agents should observe the following precedence rules to fill in the
79-
background of the canvas: if the value of the <span
80-
class="propinst-background">'background'</span> property for the HTML
81+
background of the canvas <span class="insproposed">of HTML documents</span>:
82+
if the value of the <span class="propinst-background">'background'</span> property for the HTML
8183
element is different from 'transparent' then use it, else use the
8284
value of the <span class="propinst-background">'background'</span>
8385
property for the BODY element. If the resulting value is
84-
'transparent', the rendering is undefined. (This does not apply to
85-
XHTML documents.)
86+
'transparent', the rendering is undefined. <span class="delproposed">(</span>This does not apply to XHTML documents.<span class="delproposed">)</span>
8687
</p>
8788
<div class="html-example"><p>
8889
According to these rules, the canvas underlying the following
8990
HTML document will have a "marble" background:
9091
</p>
9192
<pre>
9293
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"&gt;
94+
<span class="delproposed">
9395
&lt;HTML&gt;
9496
&lt;HEAD&gt;
97+
</span>
9598
&lt;TITLE&gt;Setting the canvas background&lt;/TITLE&gt;
9699
&lt;STYLE type="text/css"&gt;
97100
BODY { background: url("http://example.com/marble.png") }
98101
&lt;/STYLE&gt;
102+
<span class="delproposed">
99103
&lt;/HEAD&gt;
100104
&lt;BODY&gt;
105+
</span>
101106
&lt;P&gt;My background is marble.
107+
<span class="delproposed">
102108
&lt;/BODY&gt;
103109
&lt;/HTML&gt;
110+
</span>
104111
</pre>
112+
<p class="insproposed">
113+
Note that the rule for the BODY element will work even though the BODY tag has been omitted in the HTML source since the HTML parser will infer the missing tag.
114+
</p>
105115
</div>
106116

107-
<ins class="proposed">
108117
<p>
109118
Backgrounds of elements that form a stacking context (see the
110-
'z-index' property) are painted at the bottom of the element's
111-
stacking context, below any other elements in that stacking context.
119+
<span
120+
class="propinst-z-index">'z-index'</span> property) are painted at the bottom of the element's
121+
stacking context, below anything in that stacking context.
112122
</p>
113-
</ins>
114123

115124
<h3><a name="background-properties">Background properties</a>: <span
116125
class="propinst-background-color">'background-color'</span>, <span
@@ -301,11 +310,10 @@ padding area.
301310
<dd>Same as '100% 100%'.</dd>
302311
</dl>
303312

304-
<p> If only one percentage or length value is given, it sets the
313+
<p>If only one percentage or length value is given, it sets the
305314
horizontal position only, and the vertical position will be 50%. If two
306315
values are given, the horizontal position comes first. Combinations of
307-
<span class="insproposed">keyword,</span> length and percentage values are allowed, (e.g., '50% 2cm'<span class="insproposed"> or 'center 2cm' or 'center 10%'</span>). Negative
308-
positions are allowed.
316+
keyword, length and percentage values are allowed, (e.g., '50% 2cm' or 'center 2cm' or 'center 10%'). For combinations of keyword and non-keyword values, 'left' and 'right' may only be used as the first value, and 'top' and 'bottom' may only be used as the second value. Negative positions are allowed.
309317
</p>
310318
<p>
311319
The computed value of background-position for the purpose of inheritance is

0 commit comments

Comments
 (0)