Re: [css3-gcpm] Usage of bookmark-target

Le 21/05/2012 14:33, Werner Donné a écrit :
> 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.


Hi,

We’ve very recently implemented GCPM bookmarks in WeasyPrint, but we 
left bookmark-target out. I could not find an use case, and did not 
quite understand what the property is supposed to do.

The spec is unclear but I can imagine that with an URI composed of only 
a fragment: `url(#foo)`, the bookmark could behave as if it had been set 
on the element pointed to by the fragment. But I’m not sure what is the 
use case. With an URI to an external document however (as in example 37) 
I just don’t understand what it does.

Regards,
-- 
Simon Sapin

Received on Monday, 21 May 2012 22:07:51 UTC