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

[css3-gcpm] Usage of bookmark-target

From: Werner Donné <werner.donne@pincette.biz>
Date: Mon, 21 May 2012 14:33:48 +0200
To: www-style@w3.org
Message-Id: <AD353605-8B23-4DC5-B72D-140E8B0EDF39@pincette.biz>

Section 7 of the editor's draft proposes bookmark functionality. The actual bookmark-tree is generated outside of the document using information within the document. The usage of the properties "bookmark-label" and "book-mark-level" in the examples suggests that the bookmarks are constructed from target-elements, which makes sense. However, the "bookmark-target" property seems to suggest that bookmarks can be constructed from elements that link to target-elements. I think this is in contradiction with the fact that a bookmark-tree is purely generated content. If an author has to place elements in the document that link to the target-elements, then she is in fact constructing the bookmark-tree herself and then those elements need a special display type.

Therefore, I think that the type of the property "bookmark-target" should not be <uri>, but <string> or <id>, which currently doesn't exist. The value of the property could then be something like this:

a.bookmark {
  bookmark-target: attr(name);


h1 {
  bookmark-target: attr(id id); /* Using the non-existant type "id", but see [1]. */

In fact, the "bookmark-target" property could be dropped altogether, because elements with an ID-attribute and the "a" element with the "name" attribute are always potential targets. The minimum that is necessary to construct a bookmark is the presence of the "bookmark-label" property with a value other than "none".

Best regards,


[1] http://lists.w3.org/Archives/Public/www-style/2012May/0711.html
Handling your documents with care, wherever you are.
Received on Monday, 21 May 2012 12:34:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:59 UTC