Skip to content

Commit 0a27e6f

Browse files
committed
[css2] Fixed error: background can only have one value.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401426
1 parent 593bee9 commit 0a27e6f

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

css2/colors.src

Lines changed: 9 additions & 11 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.10 1998-03-17 08:51:21 ijacobs Exp $ -->
3+
<!-- $Id: colors.src,v 2.11 1998-03-24 21:15:36 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Colors and backgrounds</TITLE>
@@ -66,20 +66,18 @@ property for the BODY element. If the resulting value is
6666

6767
<div class="html-example"><P>
6868
According to these rules, the canvas underlying the following
69-
HTML document will have a "marble" background and the background of the box
70-
generated by the BODY element will be red:
69+
HTML document will have a "marble" background:
7170

7271
<PRE>
73-
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
7472
&lt;HTML&gt;
7573
&lt;HEAD&gt;
7674
&lt;STYLE type="text/css"&gt;
7775
BODY { background: url(http://style.com/marble.png) }
7876
&lt;/STYLE&gt;
7977
&lt;TITLE&gt;Setting the canvas background&lt;/TITLE&gt;
8078
&lt;/HEAD&gt;
81-
&lt;BODY style="background: red"&gt;
82-
&lt;P&gt;My background is red.
79+
&lt;BODY&gt;
80+
&lt;P&gt;My background is marble.
8381
&lt;/BODY&gt;
8482
&lt;/HTML&gt;
8583
</PRE>
@@ -392,11 +390,11 @@ B'=B<SUP>gamma</SUP>, before handing to the OS.
392390
once per browser invocation thus:
393391

394392
<PRE>
395-
for i := 0 to 255 do
396-
raw := i / 255.0;
397-
corr := pow (raw, gamma);
398-
table[i] := trunc (0.5 + corr * 255.0)
399-
end
393+
for i := 0 to 255 do
394+
raw := i / 255.0;
395+
corr := pow (raw, gamma);
396+
table[i] := trunc (0.5 + corr * 255.0)
397+
end
400398
</PRE>
401399

402400
<P>which then avoids any need to do transcendental math per color

0 commit comments

Comments
 (0)