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

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

From: Alan Stearns <stearns@adobe.com>
Date: Wed, 15 May 2013 17:18:59 -0700
To: Brad Kemper <brad.kemper@gmail.com>, Sylvain Galineau <galineau@adobe.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <CDB97321.2A544%stearns@adobe.com>
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

This archive was generated by hypermail 2.3.1 : Thursday, 16 May 2013 00:19:30 UTC