CSS-Techs: Text formatting and position

http://www.w3.org/TR/2000/NOTE-WCAG10-CSS-TECHS-20000920/ reads:

[...]
| 8 Text formatting and position
|
|    Checkpoints in this section: 3.3 Use style sheets to control layout
|    and presentation. [Priority 2] .
|
|    The following CSS2 properties can be used to control the formatting
|    and position of text:
[...]
|      * The :first-letter and :first-line pseudo-elements allow authors to
|        refer to the first letter or line of a paragraph of text.
|
|    The following example shows how to use style sheets to create a
|    drop-cap effect.
|
|    Example.
|
| <HEAD>
| <TITLE>Drop caps</TITLE>
| <STYLE type="text/css">
|       .dropcap { font-size : 120%; font-family : Helvetica }
| </STYLE>
| </HEAD>
| <BODY>
| <P><SPAN class="dropcap">O</SPAN>nce upon a time...
| </BODY>

This is not an example how to use style sheets to create a drop-cap effect.
This should be marked as a deprecated example (and therefore omitted
completly). One could have used <font> to create the same effect.

Is this another erratum or does it make any sense I can't see? Especially,
with this note:

|    Note. As of the writing of this document, the CSS pseudo-element
|    ':first-letter', which allows content developers to refer to the first
|    letter of a chunk of text, is not widely supported.

Only an example like

<head>
<title>Drop caps</title>
<style type="text/css"><!--
  p:first-letter {
    font-size: 120%;
    font-family: Helvetica, sans-serif;
  }
--></style>
</head>
<body>
<p>Once upon a time...</p>
</body>

makes sense to me.

Btw, the original example violates technique 1 in chapter 5, it does not
specify a generic font-family.
--
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://www.websitedev.de/
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote +{i}
--- Only connect! That was the whole of the sermon. -- E. M. Forster ---

Received on Wednesday, 4 October 2000 00:41:22 UTC