Re: A Call for ::nth-everything

Not commenting on the usefulness, but implementation-wise:

.) :n-th-<foo> seems more or less straightforward, although e.g.,
:first-letter has already some non-obvious implementation gotchas by
itself, which would only be compounded in :nth-letter (think, e.g.,
floating).

.) :last-line, etc., are next to impossible, as it depends on layouting -
and what is, e.g., the last line may well change on the styles set forth in
:last-line.

.) :nth-last-line, etc. are, by extrapolation of the above, just crazy talk.

As for :first/nth-word/sentence: You need to consider not only English, but
also languages like Chinese, where it's not quite straight-forward to
determine word boundaries. Note that even :first-letter is not quite as
simple as it may seem, because of ligatures, combining characters, etc.


- Roland

On Mon, Oct 31, 2011 at 12:30, Lars Gunther <gunther@keryx.se> wrote:

> Bringig this to your attention
>
> http://css-tricks.com/14771-a-**call-for-nth-everything/<http://css-tricks.com/14771-a-call-for-nth-everything/>
>
>
>
> --
> Lars Gunther
> http://keryx.se/
> http://twitter.com/itpastorn/
> http://itpastorn.blogspot.com/
>
>

Received on Monday, 31 October 2011 22:11:39 UTC