Re: Feedback on regions document

Alex Mogilevsky wrote:

> So far the two proposed solutions look equivalent in power,

Yes.

> it may be a matter of preference:
>
> 	@region-style <region_sel> { h1 { ... } }
>
> and
>
> 	h1::lines-in-region(<region_sel>) { ... }

I wouldn't call it a matter of preference, but of semantics. To a Web
author familiar with CSS, the first one reads as "in region
<region_sel>, <h1>s should be styled like so." This is problematic,
since we really don't want people to think they can style the <h1>
itself in a per-region way.

The second reads as "the lines of <h1>s that are in region <region_sel>
should be styled like so." The Web author gets the right impression
about what she's doing from this selector.


Ted

Received on Friday, 13 May 2011 18:30:31 UTC