Re: [css-containment] Splitting up the value

> 
> On 25 Apr 2015, at 15:19, Florian Rivoal <florian@rivoal.net> wrote:
> 
> Phrased differently, there are many case where you want overflow:hidden
> and scroll containing, but you don't want the element to be a formatting
> context, so "containment: paint" wouldn't be appropriate. This is
> actually most uses of "overflow: hidden".

Oops, mixed up my vocabulary. I mean "containing block for
absolutely positioned children", not "formatting context".

In the rest of the mail, I had overlooked fixed positioned children, which means that
having "overflow: clipped" without "containment: paint" wouldn't quite cut it, but
the argument stands if you include the so called "middle ground" added at the end.
So my recommendation becomes:

* add "clipped" to 'overflow'
* have "paint" in 'containment'. It's effect is that:
 * if 'overflow' is "visible", it computes to "clipped"
 * the element becomes a containing block for absolutely positioned children
   if it wasn't one already, as well as a containing block for fixed positioned
   children

 - Florian

Received on Monday, 27 April 2015 10:02:01 UTC