W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2000

Lacking support for automatic counters and numbering

From: Lars Fastrup <list@fastrup.net>
Date: Wed, 19 Jul 2000 12:45:51 +0200
Message-ID: <397586DE.452972FA@fastrup.net>
To: www-amaya@w3.org

Do anyone know when Amaya will include some more CSS2 functionality? I
especially miss the part automatic counters and numbering (section 12.5
in the CSS2 spec.)

Instead of using this silly "section numbering" feature inside Amaya, I
think that a much cleaner solution would be to simply using CSS2
instead. Here is an exceprt from the spec. that inserts a section number
before h1 and h2 titles, just to illustrate what I mean

H1:before {
  content: "Chapter " counter(chapter) ". ";
  counter-increment: chapter;  /* Add 1 to chapter */
  counter-reset: section;      /* Set section to 0 */

H2:before {
  content: counter(chapter) "." counter(section) " ";
  counter-increment: section;

Lars Fastrup
Received on Wednesday, 19 July 2000 06:46:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:32 UTC