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 UTC

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