attachment
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5346.5" name=GENERATOR><!--[if !mso]>
<STYLE>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</STYLE>
<![endif]-->
<STYLE>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:702173785;
        mso-list-template-ids:-1426413938;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
@list l1
        {mso-list-id:1102456080;
        mso-list-type:hybrid;
        mso-list-template-ids:-1017068352 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2
        {mso-list-id:1235973896;
        mso-list-template-ids:-1751486460;}
@list l2:level1
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;
        mso-ansi-font-size:10.0pt;
        font-family:Symbol;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT
face="Comic Sans MS" color=#0000ff size=2>Hi Elliott,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT
face="Comic Sans MS" color=#0000ff size=2>> <SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">When a property and its equivalent
attribute are specified, which one wins? I don’t recall seeing this
anywhere, but maybe I missed it.<o:p></o:p></SPAN><FONT face="Times New Roman"
size=3> </FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT face=Arial
color=#0000ff size=2>Since the attribute is converted into a
*<STRONG><EM>UA*</EM></STRONG> (printer) stylesheet rule, the
*<EM><STRONG>author</STRONG></EM>* stylesheet rule specifying the property will
override the UA setting and win.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT
face="Comic Sans MS" color=#0000ff size=2>A note on the non-printable region
issue: I have the following wording proposed for the upcoming
release:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006>It is <EM class=RFC2119
title="SHOULD in RFC2119 context">recommended</EM> that user agents with a <A
href="outbind://90/#non-printable-area"><FONT color=#0000cc>non-printable
area</FONT></A> (that is, user agents which cannot print over the entire sheet
surface) establish a default page margin via the user agent stylesheet that
includes the non-printable area. It is further <EM class=RFC2119
title="SHOULD in RFC2119 context">recommended</EM> that authors assume that the
default page area will not include unprintable regions.</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT
face="Comic Sans MS" color=#0000ff size=2>The intent here is that authors have a
tool to avoid unprintable regions. That won't eliminate the problem you
describe in #2 below, but it hopefully limits the problem to poorly-designed
pages.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT
face="Comic Sans MS" color=#0000ff size=2>Best wishes,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT
face="Comic Sans MS" color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=983133322-21092006><FONT
face="Comic Sans MS" color=#0000ff size=2>Melinda</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Elliott Bradshaw
[mailto:Elliott.Bradshaw@Zoran.com] <BR><B>Sent:</B> Thursday, September 21,
2006 2:40 PM<BR><B>To:</B> Grant, Melinda; xp@pwg.org<BR><B>Subject:</B> RE:
XP> Margins, borders, padding, and backgrounds<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hi
Melinda,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">This is very
helpful. At first blush I’m inclined to agree with all your
suggestions.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I would like to raise
2 related issues for discussion by the group:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<OL style="MARGIN-TOP: 0in" type=1>
<LI class=MsoNormal style="COLOR: navy; mso-list: l1 level1 lfo3"><FONT
face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">When a property and its
equivalent attribute are specified, which one wins? I don’t recall
seeing this anywhere, but maybe I missed it.<o:p></o:p></SPAN></FONT>
</LI></OL>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><FONT face=Arial color=navy
size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<OL style="MARGIN-TOP: 0in" type=1 start=2>
<LI class=MsoNormal style="COLOR: navy; mso-list: l1 level1 lfo3"><FONT
face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">When a printer has nonprintable
margins, how should we handle them (assuming they exceed the applicable
page/body margins)? One approach is to simply clip the content, but
this seems to me to run against the spirit of “content is king”.
Another approach would be to shrink to fit so that the
inside-the-margins area is shrunk slightly and perhaps shifted to fit inside
the physically printable area. The algebra is a little tricky when we
are also shrinking to fit a smaller page size, but I think this could be
solved.<o:p></o:p></SPAN></FONT> </LI></OL>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I’m wondering what
people think about these, and whether we should try to decide them and publish
the answer somewhere. If there is interest in shrink-to-fit for #2, I
can write up a more specific proposal.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 6pt"><FONT face=Arial color=navy
size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Cheers,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 6pt"><FONT face=Arial color=navy
size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Elliott<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
owner-xp@pwg.org [mailto:owner-xp@pwg.org] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Grant, Melinda<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, September 20, 2006 4:49
PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> xp@pwg.org<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> XP> Margins, borders,
padding, and backgrounds</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">From HP's
perspective (and I think we're not alone), the CSS specification is difficult
to interpret with respect to how margins, borders, padding, and backgrounds
work when applied to the <body> and <html> elements.
Recently we have learned that the CSS3 Paged Media module is not clear on how
the same properties used within an @page context should interact with the html
properties.</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">I'd like
to share my new-and-improved understanding based on discussions within the CSS
WG: ;-)</SPAN></FONT><o:p></o:p></P></DIV>
<UL type=disc>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l2 level1 lfo1"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">First,
there are html attributes and there are css properties. In html, the
body element has a bgcolor attribute, but the html element does not.
For XHTML documents, the UA (printer) must convert the body bgcolor
attribute into an equivalent printer style rule:<BR>So <body
bgcolor="red"> gets converted into the printer stylesheet rule: body
{background-color: red}. (This gets a bit more complicated for HTML
documents, but we don't need to go there.) This printer stylesheet
rule will be overridden by an author stylesheet rule, should one
exist.</SPAN></FONT> <FONT face="Comic Sans MS" color=green
size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">See <A
href="http://www.w3.org/Style/Group/css2-src/cascade.html#q13">http://www.w3.org/Style/Group/css2-src/cascade.html#q13</A>.</SPAN></FONT>
<o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l2 level1 lfo1"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">The body
element is no different when it comes to CSS styling from any other
element. Backgrounds, margins etc behave just as they do for a div,
for example.</SPAN></FONT> <o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l2 level1 lfo1"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">The html
element is the root element. It can also be selected with
':root'. It is special, in that a background is applied to the margins
as well as the content area. This is because it 'paints the canvas',
which is infinite. The only way in XHTML to put a background in the
html margin area and/or the body margin area is to use a background on the
html element. (See <A
href="http://www.w3.org/TR/CSS21/colors.html#q2">http://www.w3.org/TR/CSS21/colors.html#q2</A>.)</SPAN></FONT>
<o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l2 level1 lfo1"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">The
attached file, 'margin-both.xhtml' when opened with Firefox, provides an
example of how html and body edgings should be
rendered.</SPAN></FONT><o:p></o:p> </LI></UL>
<DIV>
<P class=MsoNormal><FONT face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">There are
still some open questions about how @page properties work. I am
hoping to publish a new version within the next week or so that will resolve
questions such as the following: [My proposed answers are in
brackets.]</SPAN></FONT><o:p></o:p></P></DIV>
<UL type=disc>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">Is a
font property set within an @page rule applied to the page content
area (unless overridden by properties set on elements rendered on the
page), or just to the contents of the page margin
boxes?</SPAN></FONT> <FONT face="Comic Sans MS" color=green
size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">
[Proposed Answer: Just to the margin boxes.]</SPAN></FONT> <o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">Do the
html and page margins collapse?</SPAN></FONT> <FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">[no]</SPAN></FONT>
<o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">Are html
and body borders closed at the bottom of each page, or just at the end of
the document?</SPAN></FONT> <FONT face="Comic Sans MS" color=green
size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">[Just at
the end of the document]</SPAN></FONT> <o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">Does a
background property set within an @page rule get applied to the page
margins? [Yes] To the page area unless obscured by html, body, or
other backgrounds?</SPAN></FONT> <FONT face="Comic Sans MS" color=green
size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">[????,
under discussion]</SPAN></FONT> <o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">On the
last page of a document, do the html and body properties terminate
immediately after the last content, or at the bottom of the page (e.g., do
the html and body margins get drawn right below the last paragraph, or at
the bottom of the page?</SPAN></FONT> <FONT face="Comic Sans MS"
color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">[Immediately
after content.]</SPAN></FONT> <o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">Similarly,
on the last page, do the page bg, border, etc. extend to the bottom of the
page, or terminate after the last content?</SPAN></FONT> <FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">[bottom
of the page]</SPAN></FONT> <o:p></o:p>
<LI class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-list: l0 level1 lfo2"><FONT
face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">Others?</SPAN></FONT><o:p></o:p>
</LI></UL>
<DIV>
<P class=MsoNormal><FONT face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">Best
regards,</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Comic Sans MS" color=green size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Comic Sans MS'">Melinda</SPAN></FONT><o:p></o:p></P></DIV>
<P style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt"><BR><!-- Converted from text/plain format -->
_____ <BR><BR>HP - Melinda Grant<BR>Connectivity
Standards <BR>Consumer Printing and Imaging<BR>+1 (541)
582-3681<BR>melinda.grant@hp.com <BR>
_____ <o:p></o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV></DIV></BLOCKQUOTE></BODY></HTML>