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

RE: [css3-regions] Feedback on regions document

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Fri, 13 May 2011 16:59:14 +0000
To: David Hyatt <hyatt@apple.com>, Vincent Hardy <vhardy@adobe.com>
CC: "www-style@w3.org CSS" <www-style@w3.org>
Message-ID: <D51C9E849DDD0D4EA38C2E539856928411F95AFE@TK5EX14MBXC218.redmond.corp.microsoft.com>
> -----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?

How about combining pseudo-elements? Would both of these work (I am not saying it's a good idea, just the syntax)?

	@region-style <region_sel> { p::first-line { ... } }

and

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

?

Alex
Received on Friday, 13 May 2011 16:59:42 GMT

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