[From nobody Wed May  6 14:06:55 2009
X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: from cacexg13.americas.cpqcorp.net ([16.92.1.76]) by
	cacexc10.americas.cpqcorp.net with Microsoft
	SMTPSVC(6.0.3790.211); Fri, 28 Jul 2006 06:11:52 -0700
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary=&quot;----_=_NextPart_003_01C6B247.64311C00&quot;
Received: from palrel10.hp.com ([15.81.168.20]) by
	cacexg13.americas.cpqcorp.net with Microsoft
	SMTPSVC(6.0.3790.1830); Fri, 28 Jul 2006 06:11:52 -0700
Received: from mailbox.hp.com (mailbox.hp.com [192.151.27.9]) (using TLSv1
	with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client
	certificate requested) by palrel10.hp.com (Postfix) with ESMTP
	id 268A03A67C for &lt;mgr123565.routing@am4.exch.hp.com&gt;;
	Fri, 28 Jul 2006 06:11:52 -0700 (PDT)
Received: from mailbox.hp.com (localhost [127.0.0.1]) by
	receive-from-antispam-filter (Postfix) with SMTP id 05DF532E2E
	for &lt;mgr123565.routing@am4.exch.hp.com&gt;;
	Fri, 28 Jul 2006 09:09:55 -0400 (EDT)
Received: from sophia.inria.fr (sophia.inria.fr [138.96.64.20]) (using TLSv1
	with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client
	certificate requested) by mailbox.hp.com (Postfix) with ESMTP
	id 1BBE532E32 for &lt;melinda.grant@hp.com&gt;;
	Fri, 28 Jul 2006 09:09:53 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1]) by sophia.inria.fr
	(8.13.7/8.13.4) with ESMTP id k6SDBmZf006392 for
	&lt;melinda.grant@hp.com&gt;; Fri, 28 Jul 2006 15:11:48 +0200
Received: from [] (gw.sophia.w3.org [193.51.208.72]) by sophia.inria.fr
	(8.13.7/8.13.4) with ESMTP id k6SDBlFv006369 for
	&lt;melinda.grant@hp.com&gt;; Fri, 28 Jul 2006 15:11:47 +0200
Content-class: urn:content-classes:message
Subject: Re: XHTML and backgrounds
Date: Fri, 28 Jul 2006 08:11:46 -0500
Message-ID: &lt;200607281511.47255.bert@w3.org&gt;
In-Reply-To: &lt;E7284FFB4887E745BE5D33625E9AEEB00267C389@cacexc10.americas.cpqcorp.net&gt;
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: XHTML and backgrounds
thread-index: AcayR2SUAcI8o8OuR5aJBcto5HJs2A==
References: &lt;E7284FFB4887E745BE5D33625E9AEEB00267C389@cacexc10.americas.cpqcorp.net&gt;
From: &quot;Bert Bos&quot; &lt;bert@w3.org&gt;
To: &quot;Grant, Melinda&quot; &lt;melinda.grant@hp.com&gt;

This is a multi-part message in MIME format.

------_=_NextPart_003_01C6B247.64311C00
Content-Type: text/plain;
	charset=&quot;iso-8859-1&quot;
Content-Transfer-Encoding: quoted-printable

Hello Melinda,

&gt; So is there any difference in XHTML between setting attributes on the
&gt; body versus the html elements?

Do you mean attributes or properties?

The &lt;html&gt; element doesn't have a bgcolor attribute, only &lt;body&gt; does.=20
And in XHTML1, the bgcolor attribute is still supposed to work the same=20
way as in HTML. (But CSS says that the way it works is subtly=20
different: In HTML documents, bgcolor=3D&quot;red&quot; is equivalent to 'body=20
{background-color: red}' in the user style sheet, except that it has=20
specificity=3D0. In XHTML documents, it is up to the UA to analyze the=20
document and construct an appropriate UA style sheet, e.g., with 'html=20
{background-color: red}'. See section 6.4.4:
http://www.w3.org/Style/Group/css2-src/cascade.html#q13)

As for CSS properties, there is absolutely nothing special about the=20
&lt;body&gt; element in XHTML. Setting 'body {background: red}' is no=20
different from 'div {background: red}', i.e., only the box of the body=20
itself is red.

The &lt;html&gt; element is the root element, so it is still special. And thus =

the only way in XHTML to set the background of the canvas is with 'html=20
{background:...}'

That is, unless...

&gt;
&gt; (I'm still trying to figure out how body and html attributes should
&gt; relate to @page attributes...)

... if we allow a 'background' property inside '@page', it presumably=20
causes a background to be rendered behind the background of the &lt;html&gt;=20
element, if any.



Bert
--=20
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

------_=_NextPart_003_01C6B247.64311C00
Content-Type: text/html;
	charset=&quot;iso-8859-1&quot;
Content-Transfer-Encoding: quoted-printable

&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=3D&quot;Content-Type&quot; CONTENT=3D&quot;text/html; =
charset=3Diso-8859-1&quot;&gt;
&lt;META NAME=3D&quot;Generator&quot; CONTENT=3D&quot;MS Exchange Server version =
6.5.7651.16&quot;&gt;
&lt;TITLE&gt;Re: XHTML and backgrounds&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/plain format --&gt;

&lt;P&gt;&lt;FONT SIZE=3D2&gt;Hello Melinda,&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=3D2&gt;&amp;gt; So is there any difference in XHTML between =
setting attributes on the&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;&amp;gt; body versus the html elements?&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=3D2&gt;Do you mean attributes or properties?&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=3D2&gt;The &amp;lt;html&amp;gt; element doesn't have a bgcolor =
attribute, only &amp;lt;body&amp;gt; does. &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;And in XHTML1, the bgcolor attribute is still =
supposed to work the same &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;way as in HTML. (But CSS says that the way it works =
is subtly &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;different: In HTML documents, =
bgcolor=3D&amp;quot;red&amp;quot; is equivalent to 'body &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;{background-color: red}' in the user style sheet, =
except that it has &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;specificity=3D0. In XHTML documents, it is up to the =
UA to analyze the &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;document and construct an appropriate UA style sheet, =
e.g., with 'html &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;{background-color: red}'. See section 6.4.4:&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;&lt;A =
HREF=3D&quot;http://www.w3.org/Style/Group/css2-src/cascade.html#q13&quot;&gt;http://w=
ww.w3.org/Style/Group/css2-src/cascade.html#q13&lt;/A&gt;)&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=3D2&gt;As for CSS properties, there is absolutely nothing =
special about the &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;&amp;lt;body&amp;gt; element in XHTML. Setting 'body =
{background: red}' is no &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;different from 'div {background: red}', i.e., only =
the box of the body &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;itself is red.&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=3D2&gt;The &amp;lt;html&amp;gt; element is the root element, so it is =
still special. And thus &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;the only way in XHTML to set the background of the =
canvas is with 'html &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;{background:...}'&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=3D2&gt;That is, unless...&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=3D2&gt;&amp;gt;&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;&amp;gt; (I'm still trying to figure out how body and =
html attributes should&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;&amp;gt; relate to @page attributes...)&lt;/FONT&gt;
&lt;/P&gt;

&lt;P&gt;&lt;FONT SIZE=3D2&gt;... if we allow a 'background' property inside =
'@page', it presumably &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;causes a background to be rendered behind the =
background of the &amp;lt;html&amp;gt; &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;element, if any.&lt;/FONT&gt;
&lt;/P&gt;
&lt;BR&gt;
&lt;BR&gt;

&lt;P&gt;&lt;FONT SIZE=3D2&gt;Bert&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;-- &lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;&amp;nbsp; Bert =
Bos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbs=
p;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp=
;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( W 3 C ) &lt;A =
HREF=3D&quot;http://www.w3.org/&quot;&gt;http://www.w3.org/&lt;/A&gt;&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;&amp;nbsp; &lt;A =
HREF=3D&quot;http://www.w3.org/people/bos&quot;&gt;http://www.w3.org/people/bos&lt;/A&gt;&amp;nb=
sp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbs=
p;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp=
;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; W3C/ERCIM&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;&amp;nbsp; =
bert@w3.org&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;n=
bsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nb=
sp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2004 Rt des Lucioles / BP 93&lt;/FONT&gt;

&lt;BR&gt;&lt;FONT SIZE=3D2&gt;&amp;nbsp; +33 (0)4 92 38 76 =
92&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =
06902 Sophia Antipolis Cedex, France&lt;/FONT&gt;
&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;
------_=_NextPart_003_01C6B247.64311C00--
]