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 21:51:36 +0000
To: Vincent Hardy <vhardy@adobe.com>, David Hyatt <hyatt@apple.com>
CC: "www-style@w3.org CSS" <www-style@w3.org>
Message-ID: <D51C9E849DDD0D4EA38C2E539856928411F96C36@TK5EX14MBXC218.redmond.corp.microsoft.com>
> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf
> Of Vincent Hardy
> Sent: Friday, May 13, 2011 2:09 PM
> I like the idea of having a ::lines-in-region pseudo element and I think
> it expresses the selection part really well. For extensibility, I would
> like that we would do something like:
> @region-style <region_sel> {
> 	h1:before {
> 		content: "(continued)";
> 	}
> }
> in the future. To be able to have richer region styling in the future, I
> think we need to have a scoping syntax. I would prefer an @ rule over
> putting the additional scoping on individual selectors. For my previous
> example, we would otherwise have to write something like:
> h1:before-in-region(<region_sel>) {}

I also prefer @region (BTW, I think it should just be @region, not @region-style). It sees that yes, a new pseudo-element can achieve the same but it requires some new parsing features, new rules for other pseudo-elements, and it doesn't provide the grouping (the latter admittedly some people like and some don't).

It also seems to fit well in model or other grouping rules:

	@media screen and (orientation:portrait) { body { columns:2; } }

	@page landscape { width:8in; height:6.5in; margin: 1in 1.5in; }	

	@region #first { body { color:white; background:url(ocean.png); } }

First-line doesn't have this option because there is no element, but given a choice @region looks cleaner...

Received on Friday, 13 May 2011 21:52:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:46 UTC