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

Re: Pseudo Element for Strings

From: Simon Jessey <simon@jessey.net>
Date: Sun, 26 Jan 2003 17:17:43 -0500
Message-ID: <000801c2c588$bf8454a0$6601a8c0@Simon2S0JP11>
To: <www-style@w3.org>

I like this suggestion. I prefer the specialized forms :char() and :word(),
and perhaps they could be expressed like :char('a'), :char('&copy;'),
:char(odd), char(even), :word('foo') etc.

Simon Jessey

w: http://jessey.net/blog/
e: simon@jessey.net

----- Original Message -----
From: "Christoph Päper" <christoph.paeper@tu-clausthal.de>
To: <www-style@w3.org>
Sent: Sunday, January 26, 2003 3:34 PM
Subject: Pseudo Element for Strings

> Hi!
> I've been thinking about this and came to the conclusion that I don't
> favor it, but anyhow want to know what others think:
> It happens occasionally that you want to style certain letters and
> but without adding semantics, e.g. color all vowels red, highlight search
> results or fancy style a reappearing company name. This can't be done with
> CSS alone, yet.
> I hereby suggest (not propose) a pseudo element which selects all strings
> (or single characters) that match its argument: '::string(arg)'.
> As far as I understand it, this probably would seriously decrease
> speed, in a much greater amount than e.g. ::first-line does already. That
> why support for it should be optional for conformant UAs IMHO.
> /Maybe/ you could speed this up with more specialized ::word() and
> ::letter() or ::char().
> Christoph Päper
Received on Sunday, 26 January 2003 17:17:40 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:05 UTC