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

Re: [css3-regions] Feedback on regions document

From: Vincent Hardy <vhardy@adobe.com>
Date: Fri, 13 May 2011 22:19:59 -0700
To: Alex Mogilevsky <alexmog@microsoft.com>
CC: David Hyatt <hyatt@apple.com>, "www-style@w3.org CSS" <www-style@w3.org>
Message-ID: <8F57A4AC-B8AD-4B6E-A726-CD80BBABA31A@adobe.com>

On May 13, 2011, at 9:59 AM, Alex Mogilevsky wrote:

>> -----Original Message-----
>> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of David Hyatt
>> Sent: Friday, May 13, 2011 9:00 AM
>> 
>> 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 {
>> 
>> The problem with this syntax is nothing stops an author from writing
>> 
>> @region-style <region_sel> {
>> 	h1 { ... }
>> }
> 
> Right, and requiring two keywords for one feature looked excessive already.
> 
> So far the two proposed solutions look equivalent in power, it may be a matter of preference:
> 
> 	@region-style <region_sel> { h1 { ... } }
> 
> and
> 
> 	h1::lines-in-region(<region_sel>) { ... }
> 
> will do exactly same. Right? Or are there any use cases that are possible in one but not another?

In the current draft, that was the intention. But with the latest discussion, our current thinking is to have something like:

@region <region_sel> {
	h1 { /* selects an h1 if _completely_ in region */ }
        h1:lines {/* selects only the lines that are in the region */}
}

Vincent
Received on Saturday, 14 May 2011 05:20:29 GMT

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