W3C home > Mailing lists > Public > www-style@w3.org > October 2011

Re: A Call for ::nth-everything

From: Roland Steiner <rolandsteiner@google.com>
Date: Mon, 31 Oct 2011 15:10:39 -0700
Message-ID: <CACFPSphF0rB4s2Q_byqsLdh3bgsmbMxa8vwJihy3OVZAtaPN-A@mail.gmail.com>
To: Lars Gunther <gunther@keryx.se>
Cc: "www-style@w3.org" <www-style@w3.org>
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.,

.) :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

.) :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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:06 UTC