W3C home > Mailing lists > Public > www-style@w3.org > August 2006

Re: [CSS3000] Proposal: ::first-nth-line() ::first-nth-letter() ::last-nth-line() ::last-nth-letter()

From: Allan Sandfeld Jensen <kde@carewolf.com>
Date: Wed, 16 Aug 2006 01:00:08 +0200
To: www-style@w3.org
Message-Id: <200608160100.08590.kde@carewolf.com>

On Wednesday 16 August 2006 00:39, Andrew Fedoniouk wrote:
> Just for logical completeness of the previous proposal...
>
> Lets do ::first-nth-line() ::first-nth-letter() ::last-nth-line()
> ::last-nth-letter() Probably someone will be able to use them if RAM will
> not be exhausted first?
>
> And hey! we shall also allow things like
> ::first-nth-letter(3n):after("cool,eh?");
>
I don't see the point of nth-letter, but nth-line would be kinda usefull, and 
be usefull for combining with line-markers.

:nth-line(even) { background: white; }
:nth-line(odd) { background: gray; }

:nth-line(5n)::marker { content: counter(line) "." }

It gets ugly however if we need to support nth-last-line and friends, and 
their usefullness is nil.

As for :last-letter, I don't even think there is any reason to 
have :first-letter. Authors could use normal markup to select any letter for 
styling if they wanted to (unlike first-line). 

<span class="first-letter>T</span>his i<span class="nth-letter">s</span> an 
exampl<span class="last-letter">e</span>.

`Allan
Received on Tuesday, 15 August 2006 23:00:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:46 GMT