W3C home > Mailing lists > Public > www-style@w3.org > October 2010

Re: [css3-multicol] overflow and paging?

From: Brad Kemper <brad.kemper@gmail.com>
Date: Thu, 14 Oct 2010 08:17:37 -0700
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, "David Storey" <dstorey@opera.com>, www-style@w3.org
Message-Id: <15BCD05A-227E-4C1B-956B-AE2E7336C269@gmail.com>
To: shelby@coolpage.com

On Oct 14, 2010, at 7:23 AM, Shelby Moore wrote:

> I had a slight mistake in specifying my case in my prior emails on this
> thread, where I forgot to mention that the constraints are in the parent
> of the multi-column container element.  A corrected example of my case is:
> <div style='width:250px; height:600px; overflow:auto'>
>   <div style='-moz-column-width:125px; -webkit-column-width:125px;
> column-width:125px; -moz-column-gap:3px; -webkit-column-gap:3px;
> column-gap:3px'>
>      ...same example content as I reported before
>   </div>
> </div>
> In the above example, and if the block direction is vertical, currently
> the browsers I have tested (IE6, FF3.5.x/3.6.x, latest Chrome) are not
> adding any columns in either direction, but rather allowing the column
> height to exceed the constrained height (as inherited from the element
> which is the parent of the multi-column container) in violation of Section
> 8.2, thus causing a vertical scroll bar to appear on that parent element.

I don't see how you figure that is constraining the height of the multi-col DIV. The outer container is overflowing, and has no effect on the height of its child, unless that container is the page in paged media.

From 8.2:
"Content that extend outside _column boxes_ at the edges of the multi-column element is clipped according to the ‘overflow’ property.
A multicol element can have more columns than it has room for due to:
	• Constrained column height. A declaration that constrains the column height (e.g., using ‘height’) must be honored, if possible. In paged media, the column height is constrained by the size of the page."

The height of your container is not constraining the height of the multi-column element. It allows that element to grow as tall as it wants, and thus overflow that parent.
Received on Thursday, 14 October 2010 15:18:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:39 UTC