Re: [WSG] Generated Content

2003-12-10 Thread The Moose

So what I understand from your tutorial Moose, and from my own 
experimenting, is that simple content can be displayed in Mozilla, eg. 
img:after {content: attr(alt)} but anything complex, including counters 
doesn't appear (anyone got a hack?) From literarymoose though it appears 
that Opera does display the generated content.

Peter.
http://www.literarymoose.info/=/article/conquistadors.html
Allo Peter,

Opera will display generated content in all combinations, including 
arbitrary elements. Also, Opera supports floating and positioning of 
generated content.

Safari 1.2 (not yet released) will support generated content via :before 
and :after, but not for arbitrary elements. Version 1.2 introduced support 
for floating and positioning.

Gecko supports GC for :before and :after, but does not support floating or 
positioning, nor does it support GC for arbitrary elements.

In addition to all that, yes, only Opera supports counters for arbitrary 
element - has been supporting it since version 5.12 (I heard).

There are some workarounds to force Mozilla "position" or "float" GC, via 
normal flow positioning, i.e margins, but that is a pain to do, and 
requires the html[xmlns] hack.

I use almost all techniques from that article on my site, and if I can 
make Gecko immitate the feature, I do so. If I can't, I hide GC from it 
via the hack I mentioned.

Counters though, cannot be forced to non-Opera browsers, unless we 
hardcode the numbers :)

M.

--
-
Book Quote of the Day: "It often happens that in situations of 
unrestraint, where there is no thought of the eye of criticism, real 
feeling glides into a mode of manifestation not easily distinguishable 
from rodomontade. A veneer of affectation overlies a bulk of truth, with 
the evil consequence, if perceived, that the substance is estimated by the 
superficies, and the whole rejected" ~ THOMAS HARDY

*
The discussion list for http://webstandardsgroup.org/
* 



Re: [WSG] Generated Content

2003-12-10 Thread Peter Neal
So what I understand from your tutorial Moose, and from my own 
experimenting, is that simple content can be displayed in Mozilla, eg. 
img:after {content: attr(alt)} but anything complex, including counters 
doesn't appear (anyone got a hack?) From literarymoose though it appears 
that Opera does display the generated content.

Peter.

Moose wrote:


I'm wondering if anyone out there can point me to an article or 
crib-sheet discussing the current support for generated content in 
CSS2. Such as are discussed here 
http://www.richinstyle.com/guides/generated2.html. I would like to use 
counters to add numbering to headings in web-versions of some 
technical documents.


Allo,

See here:

http://www.literarymoose.info/=/article/conquistadors.html

3 pages full of generated content. Enjoy!

M.

p.s. IE will see nothing, hear nothing... so it's safe to use GC.

*
The discussion list for http://webstandardsgroup.org/
*
--
Peter Neal
UNESCO Centre for Membrane Science and Technology
School of Chemical Engineering and Industrial Chemistry
The University of New South Wales
UNSW SYDNEY 2052 Australia
Office: +61-2-9385-4382
Lab: +61-2-9385-4320
Fax: +61-2-9385-5966
mailto:[EMAIL PROTECTED]
*
The discussion list for http://webstandardsgroup.org/
* 



Re: [WSG] Generated Content

2003-12-08 Thread Moose

I'm wondering if anyone out there can point me to an article or 
crib-sheet discussing the current support for generated content in CSS2. 
Such as are discussed here 
http://www.richinstyle.com/guides/generated2.html. I would like to use 
counters to add numbering to headings in web-versions of some technical 
documents.
Allo,

See here:

http://www.literarymoose.info/=/article/conquistadors.html

3 pages full of generated content. Enjoy!

M.

p.s. IE will see nothing, hear nothing... so it's safe to use GC.

*
The discussion list for http://webstandardsgroup.org/
* 



[WSG] Generated Content

2003-12-08 Thread Peter Neal
Hi,

I'm wondering if anyone out there can point me to an article or crib-sheet 
discussing the current support for generated content in CSS2. Such as are 
discussed here http://www.richinstyle.com/guides/generated2.html. I would 
like to use counters to add numbering to headings in web-versions of some 
technical documents.

Thanks,

Peter.
*
The discussion list for http://webstandardsgroup.org/
*