Re: [css3-gcpm] Content templates

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