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/
*****************************************************


Reply via email to