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

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

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 15 May 2013 06:51:31 -0700
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, "www-style@w3.org" <www-style@w3.org>
Message-Id: <C626F0AF-7F1B-40D6-9D30-4B709140C0FF@gmail.com>
To: Alan Stearns <stearns@adobe.com>

On Apr 19, 2013, at 6:25 PM, Alan Stearns wrote:

> On 4/19/13 6:01 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:
>> 
>> Actually, that brings up an interesting question for Alan:  Alan, how
>> are you supposed to style text that has been flowed out of an
>> element's contents?  There's no container to set properties on.  You
>> can't pretend that @region is container, because that would mean
>> mixing properties and style rules, which is impossible due to grammar
>> ambiguities.
> 
> You can't use region styling on bare text that you've moved from its
> original element into the named flow, but you can style the text using the
> original element.
> 
> Given this:
> 
> <p class="source">some text</p>
> 
> .source { flow-into: named-flow content; }
> #some-box { flow-from: named-flow; }
> 
> The only way you can style "some text" is by using a .source or p
> selector. The original element is still the container as far as CSS is
> concerned.

It seems like it would be more author-friendly if you just allowed the region to style any raw inline text with font, text, color, etc. properties, even if you stopped it from inheriting deeper into actual elements.
Received on Wednesday, 15 May 2013 13:52:00 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 15 May 2013 13:52:01 UTC