Re: [css-regions] Changed @region rule to ::region() pseudo-element

On 5/15/13 5:10 PM, "Brad Kemper" <brad.kemper@gmail.com> wrote:

> If I've already selected the region to give it 'flow-into' why would
>anyone NOT prefer this for the first line of the fragment rules:
>
>     @region flowname {
>
>instead of this for mixing selectors into one line:
>
>   .select the #region box.again::region(write.a #single fragment
>.selector.all on::one_line:here) {
>
>Even the fact that you can more easily visually associate the nested
>rules with the flow name is a huge advantage for @region.

I'm not following your use of @region above. You don't use the flow name
in the old @region rule, you use the selector for the region. So for your
example, it would have been:

@region .select the #region box.again {
  write.a #single fragment .selector.all on::one_line:here {
    /* declarations */
  }
}

Thanks,

Alan

Received on Thursday, 16 May 2013 00:19:29 UTC