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

Re: [css-containment] Splitting up the value

From: Florian Rivoal <florian@rivoal.net>
Date: Mon, 27 Apr 2015 12:01:37 +0200
Cc: www-style list <www-style@w3.org>
Message-Id: <D6765574-7E94-439E-B6A3-5ACA3408D563@rivoal.net>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
> 
> 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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:50 UTC