A common CSS command, especially useful in creating TOCs, is:
It works fine when all characters in the TOC are the same size. However, when there are small letters (e.g. a "small" element), the leaders don't align; the leaders for lines with small letters are shorter.
It seems as if the calculation of the leader length only counts the letters, and ignores their size.
.toc a:after {
content: leader('.') target-counter(attr(href), page);
}
It works fine when all characters in the TOC are the same size. However, when there are small letters (e.g. a "small" element), the leaders don't align; the leaders for lines with small letters are shorter.
It seems as if the calculation of the leader length only counts the letters, and ignores their size.