W3C home > Mailing lists > Public > www-style@w3.org > September 1999

Re: CSS3 Paged Media Draft

From: Sjoerd Visscher <sjoerd@heeten.nl>
Date: Wed, 29 Sep 1999 23:50:54 +0200
Message-ID: <004101bf0ac4$b522fca0$1400000a@beneden>
To: "www-style" <www-style@w3.org>
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 GMT

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