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

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