- From: Mikko Rantalainen <mikko.rantalainen@peda.net>
- Date: Wed, 30 Nov 2005 13:37:03 +0200
- To: www-style@w3.org
Håkon Wium Lie wrote:
> Also sprach Lachlan Hunt:
>
> > > For example, the Table of Contents uses leaders and generated page
> > > numbers:
> > >
> > > Introduction...................12
> > > HTML...........................15
> >
> > I looked for documentation of the leader() function in Prince's
> > documentation, but I couldn't find it mentioned anywhere. Is there any
> > documentation for it?
>
> This is experimental stuff which could be changed on short notice so
> it makes sens to not document it now. I believe, however, that this is
> how it works:
>
> A new value, 'leader()' is allowed on the 'content' property. The
> functional notation accepts a string value, e.g.:
>
> leaders(' . ')
>
> In its simplest form, the 'content' property only takes a 'leaders' value:
>
> hr { content: leaders(' . ') }
>
> In a more complex example, the 'leaders' value is combined with other
> values on the 'content' property:
>
> ul.toc a::after {
> content: leader(' . ') target-counter(attr(href), page);
> }
>
> If there are more than one 'leaders' value, the available space on
> that line will be split equally between them so that the line is
> filled.
Okay, the above sounds a bit like the description I've seen for the
"%%" unit. What if the actual content, leaders and page numbers
cannot fit on one line, do we get something ugly like
A short title ............................. 1
Another short title ....................... 5
Here's an another title and this one isn't so
short ..................................... 8
I think it should be rendered more like
A short title ............................. 1
Another short title ....................... 5
Here's an another title and this one
isn't so short ............................ 8
How would one control the amount of free space on the right?
--
Mikko
Received on Wednesday, 30 November 2005 11:37:22 UTC