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

RE: [css3-regions] flow-into: <ident> content-only

From: Rossen Atanassov <Rossen.Atanassov@microsoft.com>
Date: Fri, 12 Apr 2013 05:51:54 +0000
To: Alan Stearns <stearns@adobe.com>, Tab Atkins Jr. <jackalmage@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <160baf0f3b7d4b4180679141ebf57326@BY2PR03MB192.namprd03.prod.outlook.com>
> From: Alan Stearns [mailto:stearns@adobe.com]
> Sent: Monday, April 8, 2013 12:47 PM
> Say we have a new property called flow-content-into with an initial value of
> none, and we add a new initial 'auto' value to flow-from which computes
> based on the computed value of flow-content-into. Now you can style an
> element like this:
> #an-element {
>   flow-content-into: named-flow;
> }

I like that. However, for symmetry we should have 'flow-element-into' or better yet 'flow-box-into' separate property as well. Otherwise flowing an element's box using 'flow-into' doesn't guarantee that its content goes with it because 'flow-content-into' can be redirected elsewhere. The 'flow-box-into' guarantees at least the box. The default value of 'flow-content-into' will resolve to the value of 'flow-box-into', thus by default it will have the current behavior of 'flow-into'.

> This can also dovetail nicely with overflow:fragments. You can consider an
> overflow:fragments element as creating a region chain for an 'anonymous'
> named flow consisting of its contents. This works well for some cases where
> all of the fragment boxes can be children of the same parent, but if you
> wanted to add a box somewhere else in the document's structure, you could
> use this new property to give the flow a name, and then use flow-from
> somewhere else:
> #overflow-fragments-element {
>   overflow: fragments;
>   flow-content-into: fragmented-flow;
> }
> #some-other-box {
>   flow-from: fragmented-flow;
> }

This is great. Even if it is not anonymous "overflow: fragments;" will now be a good addition to named flows. An element with "flow-content-into; flow; flow-from: flow;" will auto-generate fragment boxes based on its overflow value.

Received on Friday, 12 April 2013 05:52:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:28 UTC