- From: Alexander Shpack <shadowkin@gmail.com>
- Date: Thu, 15 Mar 2012 15:08:18 +0200
- To: Christoph Päper <christoph.paeper@crissov.de>
- Cc: www-style <www-style@w3.org>
On Thu, Mar 15, 2012 at 1:22 PM, Christoph Päper <christoph.paeper@crissov.de> wrote: > Alexander Shpack: > > >> content: pattern(#id); > > Selectors in values are always a bad idea. This is not selector, it's ID name. > > See GCPM or Content for an alternate proposal that seems to come close to what you desire. > <http://dev.w3.org/csswg/css3-gcpm/#named-strings> > <http://dev.w3.org/csswg/css3-content/#strings> > >> <div><span id="contentPattern">This is </span>madness!</div> >> <div id="content">SPARTA!</div> >> >> #content {content: pattern(contentPattern);} > > Since the ‘content’ property replaces default content with its value, the second line would read: > > This is Correct, it's my fail. The right notation is #content::before {content: pattern(contentPattern);} I can use not strings only as patterns.
Received on Thursday, 15 March 2012 13:08:51 UTC