Re: CSS3 Paged Media Draft

One thing:

I think it's a bit confusing that 'content()' flattens out the text. I think
you'll get the "hey, why is all my markup gone??". Call it 'text()'. And
keep 'content()' to represent the exact content of the element (it should
then be disallowed in set-string). This way (the annoying) :before and
:after are not needed anymore.

f.e.

P.note:before {content:'[';}
P.note:after {content:']';}
P.note {font-style:italic;}

becomes

P.note {
    content:'[' content() ']';
    font-style:italic;
}

And it will work exactly as expected. The most gain is adding content with
complicated selectors, because the :before and :after require selector
duplication.

Sjoerd Visscher

Received on Wednesday, 29 September 1999 17:53:29 UTC