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

Re: ::inline Pseudo-Element

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 15 Jan 2006 14:52:29 +0100
To: Daniel Schierbeck <daniel.schierbeck@gmail.com>
Cc: www-style@w3.org
Message-ID: <2rkks1ppordfdm886uefl0eh53sibf6itg@hive.bjoern.hoehrmann.de>

* Daniel Schierbeck wrote:
>When doing image-replacement in (X)HTML on, for example, headings, you 
>often need to, either manually or through a script, wrap <span/> tags 
>around the text inside the <hx/> elements.
>
> <h1 class="abc"><span>This will be replaced with an image</span></h1>
>
> h1.abc > span { display: none; }
> h1.abc { background-image: ...; }
>
>If ::inside was implemented, that wouldn't be neccesary
>
> <h1 class="abc">This will be replaced with an image</h1>
>
> h1.abc::inside { display: none; }
> h1.abc { background-image: ...; }

How is this different from the 'content' property?
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Sunday, 15 January 2006 13:51:52 GMT

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