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

[css-overflow] should overflowing zero-height or zero-width boxes be considered "overflow"?

From: Peter Salas <psalas@microsoft.com>
Date: Tue, 8 Sep 2015 18:21:24 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <BLUPR03MB134788B5EAFC0DB0DDCFFC78DD530@BLUPR03MB1347.namprd03.prod.outlook.com>
I recently came across an interop issue related to how browsers treat zero-height or zero-width boxes in containers with overflow:scroll or overflow:auto.

In this test case:


there are scrollers with various combinations of overflowing zero-height/width divs.  In Edge, all of the boxes have scrollbars (zero-height/width boxes count as overflow), but Chrome only has scrollbars in half of them, while Firefox has scrollbars in a few more cases than Chrome.

If we add a negative margin-bottom to the "tall zero-width" elements, Chrome and Firefox only show scrollbars in the four cases where the zero-width/height boxes contain non-empty (but not overflowing) content. 

What should the behavior be in these cases?

Received on Tuesday, 8 September 2015 18:21:54 UTC

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