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

Re: [css3-regions] Feedback on regions document

From: David Hyatt <hyatt@apple.com>
Date: Fri, 13 May 2011 10:59:33 -0500
Cc: "www-style@w3.org CSS" <www-style@w3.org>
Message-id: <4D780436-73AA-4D61-9A13-3F8A7D970BF4@apple.com>
To: Vincent Hardy <vhardy@adobe.com>
On May 12, 2011, at 11:03 PM, Vincent Hardy wrote:

> 
> I see. What about the following then:
> 
> @region-style <region_sel> {
> 	p::lines-in-region {
>         ...
>         }
> 
>         h1::lines-in-region {
>          ....
>         }
> }
> 

The problem with this syntax is nothing stops an author from writing

@region-style <region_sel> {
	h1 { ... }
}

and then not understanding why it doesn't work.

Is the concern with

h1::lines-in-region(<region_sel>) { }

that you have to repeat the region selector over and over potentially?  I wouldn't worry too much about that if so, since I can't imagine the customizations you'd do per-region would involve more than a handful of elements, and eventually we'll have CSS variables anyway, which will allow you to avoid repeating a complex selector expression.

dave
(hyatt@apple.com)
Received on Friday, 13 May 2011 16:00:16 GMT

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