Re: [css3-ui][css4-ui] block-overflow property

On Tue, Jul 31, 2012 at 12:49 AM, Morten Stenshorne <mstensho@opera.com> wrote:
> Basically, remove as many boxes (starting from the bottom) as necessary
> to fit the <string> box (which should be placed right after the last box
> that was kept)? And then some blahblah about corner-cases when no boxes
> at all can fit, and what to do when there's not even enough space for
> the <string> box?

Yes, that's a better way to phrase what I was trying to say.

> Maybe something like that. Not sure what to do with floats and
> absolutely positioned boxes, though. The current solutions (both the
> Webkit one and the Opera one) don't have to worry about such
> things. Then again, they don't allow for reliably specifying block and
> inline overflow separately, if that's something that we need.

Not sure about floats.  Abspos shouldn't be affected.

> Maybe. And you could add something similar for text-overflow in the
> inline direction too, of course (::inline-ellipsis ?). Hmm, or maybe
> not. You could end up with multiple inline ellipsis pseudo elements per
> block container then.

Yeah, I don't think we need to worry about ::inline-ellipsis, but we
can always address it later if we decide we care.  The point is that
the styling needs of block ellipsises appear to be more complex than
inline ones.

>> I think the default stylesheet should probably apply "display: block;
>> text-align: center;" to the pseudo.  We can let it inherit the rest of
>> its properties from the element.
>
> Adding pseudo selectors to the default stylesheet sounds a bit weird to
> me. It's a bit like saying that CSS isn't good enough in its plain form,
> isn't it? :)

Not at all!  Your intuition is probably just biased by the fact that
the 2.1 pseudo-elements are all completely generic, so we don't apply
*anything* to them.

The ::marker pseudo has several properties specified on it in the UA
stylesheet, because it's meant for a specific purpose, and I've made
most of its special abilities usable in general through some new
properties.  ::block-ellipsis is similar - it has a specific use, and
we can actually give good defaults for this usage.

~TJ

Received on Tuesday, 31 July 2012 23:07:55 UTC