Hello,
Christoph has proposed an alternate syntax:
h1:region(first) { color: purple; }
h1 { color: blue; }
I tend to agree with Alex. I think regions decouple the content from their layout containers so that, typically, we will have a different chain of containers apply depending on the orientation, the device width/height or other factors like this.
@fantasai: is what Christoph proposed what you had in mind?
Vincent
On Jan 5, 2012, at 11:21 PM, Alex Mogilevsky wrote:
± From: fantasai [mailto:fantasai.lists@inkedblade.net]
± Sent: Monday, December 26, 2011 7:56 PM
±
± The structure and usage of a design's region-specific styling is very similar to the
± structure and usage of contextual styling (using descendant selectors), and not
± similar to the structure and useage of media-specific styling. Given that, I'm uneasy
± with using @media as an analogy here and discarding the specificity of the region.
I am not sure what you are proposing here. The way it is defined now, it does manage to avoid interfering with specificity. Earlier proposals were way harder to define and had complicated interaction with other selectors.
Analogy with @media is also reasonable IMO. It makes sense to me that styles specific to page size and styles specific to page number work the same way. Why not?
Do you have something else in mind that you like more?
Alex