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?


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

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