W3C home > Mailing lists > Public > spec-prod@w3.org > January to March 2001

Re: How to mark up examples in W3C technical reports

From: Susan Lesch <lesch@w3.org>
Date: Sat, 27 Jan 2001 16:57:44 -0800
Message-Id: <p05010405b69919080d4a@[204.210.33.45]>
To: charles@w3.org, eve.maler@east.sun.com
Cc: spec-prod@w3.org
Charles McCathieNevile wrote:

>  I think it is  a fine idea to move away from tables. In the SVG access note -
>  http://www.w3.org/TR/SVG-access - we used div elements, containing pre that
>  contained code... and a style sheet

I think SVG access is a valuable model. Instead of caption or table
header elements you have a figure number and text caption, which make a
border make sense. The 'strong' markup inside pre brings another
dimension to examples. The whole effect is meaning-encrusted.

This week we got unlabeled pre working pretty well in Netscape 4,6 and
Mac IE 3,4,5 in the CSS3 Selectors WD [1]:

pre {
	background-color: #d5d5d5;
	margin: 1em 1cm;
	padding: 0 0.3cm;
	white-space: pre;  /* for NS4 */
	border: none;      /* for NS4 */
	font-size: 92%;
}

[1] 
http://www.w3.org/TR/2001/WD-css3-selectors-20010126/#attribute-representation

Eve L. Maler wrote:

>  is background-color widely enough supported to be "safe"?

It is unsupported in IE 3 on Macs at least. In the case above,
body is white, and background renders in stair steps so there may be
some use for background-color. (It shouldn't be used for example to
reverse colors in table headers. If body was white, background-color
was black, and text color was white, the header would be invisible.
That might be what Eve is referring to.)

-- 
Susan Lesch - mailto:lesch@w3.org  tel:+1.858.483.4819
World Wide Web Consortium (W3C) - http://www.w3.org/
Received on Saturday, 27 January 2001 19:58:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:19:11 GMT