|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: colors.src,v 2.34 2003-08-04 12:53:20 bbos Exp $ --> |
| 3 | +<!-- $Id: colors.src,v 2.35 2003-08-27 16:57:50 bbos Exp $ --> |
4 | 4 | <head> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <title>Colors and backgrounds</title> |
7 | 7 | <meta name="editor" lang="tr" content="Tantek Çelik"> |
8 | | -<!-- Changed by: Tantek Celik, 2003-07-29 --> |
| 8 | +<!-- Changed by: Tantek Celik, 2003-08-27 --> |
9 | 9 | <style type="text/css"> |
10 | 10 | .current,.proposed,span.delcurrent { background:#feb } |
11 | 11 | ins.proposed,span.insproposed,p.insproposed { background:#bfb } |
@@ -61,55 +61,33 @@ background will shine through by default because of the initial |
61 | 61 | 'transparent' value on <span |
62 | 62 | class="propinst-background-color">'background-color'</span>. |
63 | 63 | </p> |
64 | | -<del class="current"> |
65 | 64 | <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. |
| 65 | +The background of the root element becomes the background of the canvas and covers the entire <a href="intro.html#canvas">canvas</a>, 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. |
70 | 66 | </p> |
71 | | -</del> |
72 | | -<ins class="proposed"> |
73 | | -<p> |
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. |
75 | | -</p> |
76 | | -</ins> |
77 | 67 |
|
78 | 68 | <p>For HTML documents, however, we recommend that authors specify the |
79 | 69 | background for the BODY element rather than the HTML element. User |
80 | 70 | agents should observe the following precedence rules to fill in the |
81 | | -background of the canvas <span class="insproposed">of HTML documents</span>: |
| 71 | +background of the canvas of HTML documents: |
82 | 72 | if the value of the <span class="propinst-background">'background'</span> property for the HTML |
83 | 73 | element is different from 'transparent' then use it, else use the |
84 | 74 | value of the <span class="propinst-background">'background'</span> |
85 | 75 | property for the BODY element. If the resulting value is |
86 | | -'transparent', the rendering is undefined. <span class="delproposed">(</span>This does not apply to XHTML documents.<span class="delproposed">)</span> |
| 76 | +'transparent', the rendering is undefined. This does not apply to XHTML documents. |
87 | 77 | </p> |
88 | 78 | <div class="html-example"><p> |
89 | 79 | According to these rules, the canvas underlying the following |
90 | 80 | HTML document will have a "marble" background: |
91 | 81 | </p> |
92 | 82 | <pre> |
93 | 83 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
94 | | -<span class="delproposed"> |
95 | | -<HTML> |
96 | | - <HEAD> |
97 | | -</span> |
98 | 84 | <TITLE>Setting the canvas background</TITLE> |
99 | 85 | <STYLE type="text/css"> |
100 | 86 | BODY { background: url("http://example.com/marble.png") } |
101 | 87 | </STYLE> |
102 | | -<span class="delproposed"> |
103 | | - </HEAD> |
104 | | - <BODY> |
105 | | -</span> |
106 | 88 | <P>My background is marble. |
107 | | -<span class="delproposed"> |
108 | | - </BODY> |
109 | | -</HTML> |
110 | | -</span> |
111 | 89 | </pre> |
112 | | -<p class="insproposed"> |
| 90 | +<p> |
113 | 91 | 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 | 92 | </p> |
115 | 93 | </div> |
|
0 commit comments