- From: Matthew Brealey <thelawnet@yahoo.com>
- Date: Fri, 3 Dec 1999 04:40:48 -0800 (PST)
- To: www-style <www-style@w3.org>
--- Tim Bagot <tsb@earth.li> wrote: > On Thu, 2 Dec 1999, Matthew Brealey wrote: > > > Why isn't :first-word in the selectors WD? > > The problem is in defining what a word is in a way > that works in all > languages. It probably could be done given > sufficient effort. UAs are already required to define a word for word-spacing. However, the wd should state that UAs should apply :first-word in a language specific way. At the very least, it could say that for Western European languages, it should apply them - even something that only works for English, French, German, Spanish, Greek, etc., is of use for hundreds of millions of people, and by leaving the option to the UA to have a language-specific approach, it is easily extendable. Alternatively, the UA could define a word as everything between spaces (of whatever kind, e.g., including em space, non-breaking space, etc). Although this would not necessarily be appropriate in all languages, presumably if you don't like this approach, you don't use :first-word (in any case, I would imagine that :first-word would be less useful in such languages any way). It really doesn't seem too much to ask that CSS should allow the formatting of a simple book to be achieved: H1 + P:first-word, H2 + P:first-word, H3 + P:first-word, H4 + P:first-word, H5 + P:first-word, H6 + P:first-word {font-variant: small-caps} H1 + P, H2 + P, H3 + P, H4 + P, H5 + P, H6 + P {text-indent: 0} P {text-indent: 3%} ===== ---------------------------------------------------------- From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS)) __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one place. Yahoo! Shopping: http://shopping.yahoo.com
Received on Friday, 3 December 1999 07:40:50 UTC