W3C home > Mailing lists > Public > www-style@w3.org > June 2006

Re: [css3-gcpm] Leaders

From: Håkon Wium Lie <howcome@opera.com>
Date: Fri, 16 Jun 2006 15:11:10 +0200
Message-ID: <17554.44526.319749.316725@localhost.localdomain>
To: werner.donne@re.be
Cc: www-style@w3.org

Also sprach Werner Donné:

 > > But, consider this example:
 > > 
 > >   ul.toc a::after {
 > >     font-size: 10pt;
 > >     content: leader('. . . ') target-counter(attr(href), page);
 > >   }
 > > 
 > > By setting the font size to get leaders right, you also set the size
 > > on page numbers. Typically, you want the font size of the page numbers
 > > to match that of the text.
 > > 
 > 
 > In that case you can write:
 > 
 > <a href="..."><span class="leader"/></a>
 > 
 > span.leader::after
 > {
 >   font-size: 10pt;
 >   content: leader('...');
 > }
 > 
 > a::after
 > {
 >   content: target-counter(attr(href), page);
 > }

True, this would work. However, it requires a change in the markup. I
think the extra argument on leader() is a more elegant solution. But
I'll add this as an issue in the draft.

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Friday, 16 June 2006 13:11:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:45 GMT