Re: Proposed ::last-line and ::last-letter selectors

*Philip TAYLOR*:
> 111111111111111111111111111
>      2222222222222222222222222222
>      3333333333333333333333333333
>      4444444444444444444444444444
>           5555555555555555555555555555
>
> This is used (for example) in typesetting
> very long chapter headings, and for typesetting
> very long entries in Tables of Contents and
> in Indices.

I wanted to write this would rather be an argument for a counterpart  
of |text-indent| (|text-outdent|?), but that is the case only if the  
desired layout was (assuming "text-align: justify", and left-to-right  
text obviously):

111111111111111111111111111111111
      2222222222222222222222222222
      3333333333333333333333333333
      4444444444444444444444444444
      555555555555555555555555555555555

Most use cases I can think of can alternatively be done with  
|::after| or another element, depending whether EOT markers etc. are  
considered style or content.

Following the symmetry / consistency argument, we would probably have  
to introduce |::nth-line()| and |::nth-letter()|, too. Do we really  
want to go down that road? How about |::letter()| then, which would  
take a one character string as an argument? Or rather |::regexp()|?  
Let's wait for CSS 4 or 5 with stuff like that, please.

Received on Tuesday, 15 August 2006 14:04:35 UTC