W3C home > Mailing lists > Public > www-style@w3.org > July 2012

Re: [css-regions] Concern about CSS regions flowing into generated content

From: Alan Stearns <stearns@adobe.com>
Date: Thu, 26 Jul 2012 19:47:24 -0700
To: Elliott Sprehn <esprehn@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <CC374AA1.101A2%stearns@adobe.com>
On 7/26/12 6:49 PM, "Elliott Sprehn" <esprehn@gmail.com> wrote:

>Generated content is restricted to an extremely limited subset of things
>right now (plain text, images, quotes and counters). Regions specifically
>calls out generated content as being a possible part of a named flow, but
>this means anything could potentially end up inside generated content
>(links, form controls, etc.).
>
>Can someone give a use case for this?

Elliot,

There are two ways that generated content interacts with named flows and
regions. First, an element can be redirected to a named flow. The
generated content associated with that element will be rendered in the
region chain along with the element. Second, a CSS Region itself may have
generated content, and section 5 describes how that content interacts with
the named flow content in the Region Box. In both of those cases,
generated content is limited to the current set of possibilities, so I do
not think that is what you're asking about.

The flow-from property applies to non-replaced block containers. A
::before pseudo-element with display:block could have flow-from apply. In
this case, generated content for the pseudo-element is not visually
formatted, and we merely use the CSS-generated box from the pseudo-element
as part of the region chain. That's the use case - defining a box in CSS
rather than a box from an HTML element to use as a CSS Region.

So the fragment of the named flow that flows through the pseudo-element
box isn't "inside" the generated content. It's only "inside" the
CSS-generated box, and the pseudo-element's generated content is not
displayed. Does this address your concern?

Thanks,

Alan
Received on Friday, 27 July 2012 02:47:56 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:57 GMT