Re: Text selector [was Re: breaking overflow]

On Mon, Jan 4, 2010 at 10:05 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> <p>foo<i>bar</i>  baz</p>
>> p::text("foo b") { display: block; }
>
> Hold on.  Why would we ever allow ::text to have a 'display' property set?
>  What are the use cases?  I have been assuming that ::text would have
> restrictions similar to first-letter and first-line.

I guess we can assume similar restrictions.  Assume, then, that I
instead applied float:left;clear:left;.  Same problem occur - you get
*two* blocks floating, one cleared under another, when you wanted to
just have a single span of text floated.

~TJ

Received on Monday, 4 January 2010 16:11:29 UTC