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

Re: Find-text pseudo-element?

From: (wrong string) äper <christoph.paeper@tu-clausthal.de>
Date: Sun, 13 Jul 2003 23:23:42 -0400 (EDT)
Message-ID: <04fc01c349b7$528a3d20$3ef4ae8b@heim4.tuclausthal.de>
To: <www-style@w3.org>



Tom Gilder <tom@tom.me.uk>:
>
> 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?

That's the reason for which I've never suggested something like it here
before. OTOH search and replace operations in most editors are incredibly
fast, even with RegEx. I suppose it has been discussed already, though.

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

::text("i") {content: url("hearty-dotted-i.svg")}
::text("ACME") {content: url("logo.png")}
::text("$search_engine_buzz_words") {display: none}
::text("$search_term") {background: yellow}
::text{"blue"} {color: blue}
@media aural {::text("e. g.") {content: "for example"}}
Received on Monday, 14 July 2003 08:40:32 GMT

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