RE: [css-containment] "contain:layout" mixed with "display:inline" and block-in-inline

> > What's supposed to happen if I have content like:
> >
> >   <span style="display:inline;contain: layout">
> >     aaa
> >     <div style="display:block">bbb</div>
> >     ccc
> >   </span>
> >
> I'm also curious about the same scenario with "contain:paint", BTW.
> Should each of the <span>'s boxes here (but not the <div>) have paint
> containment applied to its content area?
> >
> >  [...]
> >
> > Perhaps we need "contain" to blockify the display value? (similar to
> > floats, abspos stuff, and flex/grid-item)

I would be in favor of the containment instruction being ignored for display modes which clearly do not fit their containment strategy. In particular, "display: inline" seems particularly incompatible with "contain: layout".

Received on Wednesday, 10 June 2015 18:52:49 UTC