- From: Håkon Wium Lie <howcome@opera.com>
- Date: Fri, 16 Jun 2006 15:11:10 +0200
- 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 UTC