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

Find-text pseudo-element?

From: Tom Gilder <tom@tom.me.uk>
Date: Mon, 14 Jul 2003 00:24:47 +0100
Message-ID: <13187446671.20030714002447@tom.me.uk>
To: www-style@w3.org

Would it be too resource-intensive to have a pseudo-element that
simply searched out all text in a string and applied itself to it?

For instance:

  p::text("example") { font-weight: bold; }

...would make all instances of the text "example" inside P elements
bold. The one problem I can think of with this is that it might cause
long pauses in rendering lots of text on slower devices.

If that was deemed to be a problem, how about having it apply to just
the first match of text?

Tom Gilder, http://tom.me.uk/
 Blog! http://blog.tom.me.uk/
Received on Sunday, 13 July 2003 19:24:51 UTC

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