W3C home > Mailing lists > Public > www-style@w3.org > August 2003

Re: Suggestion: 'resolve' property

From: Arve Bersvendsen <arve@virtuelvis.com>
Date: Mon, 04 Aug 2003 13:22:58 +0200
To: Jens Meiert <jens.meiert@erde3.com>
Cc: www-style@w3.org
Message-ID: <oprtdokkgr2ftht5@mail.online.no>

On Mon, 4 Aug 2003 13:11:27 +0200 (MEST), Jens Meiert 
<jens.meiert@erde3.com> wrote:

> Often using <acronym /> and <abbr /> elements, I wondered
> (but didn't look for, so excuse me if this post is redundant
> or the problem already solved) if there is any possibility
> to resolve these elements when printed.
> I imagine anything like this (in print rules, but maybe
> even in screen rules):
>
> acronym, abbr { resolve: true; }

There is no need for a new rule. the :before and :after
pseudoelements and the content: property already does the job.

Example 1. Content replaced by the value of the title property:

  acronym, abbr {
    content: attr(title);
  }

Example 2. Adds an explanation after the abbreviation/acronym.

  acronym:after {
    content: " (Acronym: " attr(title) ") ";
  }

  abbr:after {
    content: " (Abbreviation: " attr(title) ") ";
  }


-- 
Arve Bersvendsen

http://www.virtuelvis.com
http://www.bersvendsen.com
Received on Monday, 4 August 2003 07:23:18 GMT

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