W3C home > Mailing lists > Public > www-style@w3.org > May 2012

[css3-gcpm] The value of bookmark-label should be a list

From: Werner Donné <werner.donne@pincette.biz>
Date: Fri, 25 May 2012 10:30:21 +0200
To: www-style@w3.org
Message-Id: <6D300F57-6D37-4AA7-956C-3CA75176E431@pincette.biz>
Hello,

The value of the "bookmark-label" property should be a list, reminiscent of the "content" property, because the various content parts could be rearranged. The following example uses some fancy typesetting for titles. The chapter number comes after the title, is much larger and is right-aligned. For the bookmark label it would be normal to expect the number before the title, because no fancy typesetting is desired in that context.

  h1
  {
    bookmark-label: content-after " " content-element;
    margin-bottom: 2.4em;
    text-align-last: justify;
  }

  h1:after
  {
    content: leader(space) counter(h1);
    font-family: serif;
    font-size: 3em;
    font-style: italic;
    text-transform: uppercase;
  }

Best regards,

Werner.
--
http://www.pincette.biz/
Handling your documents with care, wherever you are.
Received on Friday, 25 May 2012 08:31:08 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:54 GMT