W3C home > Mailing lists > Public > www-style@w3.org > June 2015

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

From: François REMY <francois.remy.dev@outlook.com>
Date: Wed, 10 Jun 2015 20:52:19 +0200
Message-ID: <DUB405-EAS913BC33088C0ECAD4D6626A5BD0@phx.gbl>
To: "'Daniel Holbert'" <dholbert@mozilla.com>, <www-style@w3.org>
> > 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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC