W3C home > Mailing lists > Public > www-style@w3.org > April 2008

Re: Acronyms inside "text-transform: uppercase"

From: Patrick Garies <pgaries@fastmail.us>
Date: Thu, 24 Apr 2008 11:54:39 -0500
Message-ID: <4810BB4F.2030907@fastmail.us>
To: Christoph Päper <christoph.paeper@crissov.de>
CC: www-style@w3.org

Christoph Päper wrote:
>  (If you want to, you may add a |title| attribute containing "United
>  States", it doesn't matter for this discussion.)
>
>  Should CSS provide a solution to the problem of "hard-coded"
>  uppercase words, i.e. acronyms usually, inside "soft-coded" uppercase
>  text? How would this look like? I have no idea which existing
>  property would be suitable for this or what a new one would be
>  called.

If you have a |title| attribute with the expanded term, you could use 
|abbr[title="United States"] { content: "U.S."; }|.

Still, I guess it might be interesting to have more generic declarations 
like:

|text-decoration: post-character("."); /* "US" > "U.S.*/|

To go off on a tangent, you might even have:

|text-decoration: intra-character(" "); /* "Hello World !" > "H e l l 
o   W o r l d !*/|
|text-decoration: inter-character("."); /* "Hello World !" > 
".H.e.l.l.o. .W.o.r.l.d.!.*/|

— Patrick Garies
Received on Thursday, 24 April 2008 16:55:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:05 GMT