W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Re: Text selector [was Re: breaking overflow]

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 04 Jan 2010 17:20:22 -0500
Message-ID: <4B4269A6.1010207@mit.edu>
To: Brad Kemper <brad.kemper@gmail.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
On 1/4/10 5:07 PM, Brad Kemper wrote:
> Let's say you have some text that cruises the boundary of a first-line
> pseudo-element. Why should the ::text pseudo-element be more restricted
> than an actual element, such as a SPAN or a B?

The latter is not able to cross the boundary of a :first-line 
pseudo-element without actually being an inline.  Thus the styling on 
elements which can cross the boundary of first-line is non-arbitrary.

I suppose one could do ::text processing before dealing with first-line 
and first-letter, and that might make things similar enough...

> I don't know why, given that you can do arbitrary styling on other
> elements that cross the boundaries of first-line.

As a matter of fact, you cannot.  See above.

> The restriction on not crossing element boundaries was intended to make
> it less complicated and easier to implement.

I suspect that restriction might be needed simply to get it defined in 
an unambiguous way, fwiw.

-Boris
Received on Monday, 4 January 2010 22:26:11 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:23 GMT