W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [css3-gcpm] Content templates

From: Alexander Shpack <shadowkin@gmail.com>
Date: Thu, 15 Mar 2012 15:08:18 +0200
Message-ID: <CAK4xKX=TVQvv913C485rX8yhbbM5uzoh+Vf9aheVC4tU8dHTAA@mail.gmail.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:48:52 GMT