- From: Vincent Hardy <vhardy@adobe.com>
- Date: Fri, 13 May 2011 19:20:17 -0700
- To: Alex Mogilevsky <alexmog@microsoft.com>
- CC: David Hyatt <hyatt@apple.com>, "www-style@w3.org CSS" <www-style@w3.org>
On May 13, 2011, at 2:51 PM, Alex Mogilevsky wrote: >> -----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... Yes, I agree @region is better than @region-style. Vincent
Received on Saturday, 14 May 2011 02:20:48 UTC