W3C home > Mailing lists > Public > www-style@w3.org > February 2016

[css-containment] layout containment and overflow

From: Florian Rivoal <florian@rivoal.net>
Date: Thu, 4 Feb 2016 20:21:34 +1100
Message-Id: <86302BF1-1488-4E69-8529-3332B5A0BB9A@rivoal.net>
To: www-style list <www-style@w3.org>
Because an absolutely positioned elements sticking out of a layout-contained element may cause a scrollbar to appear on a containing element, there can still be layout changes out of the containing element, and that's an issue (tracked as issue 2 in the spec).

As suggested by the spec, one way out of this is for layout containment to imply paint containment as well, but there's an less heavy handed alternative. We could add one entry to the "Giving an element layout containment has the following effects:" list:

* If the computed value of the 'overflow-x' and 'overflow-y' properties of the containing element is ''visible'', any overflow out of the containing element is treated as ink overflow.

- Florian
Received on Thursday, 4 February 2016 09:22:14 UTC

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