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

Re: [css3-regions] Feedback on regions document

From: Vincent Hardy <vhardy@adobe.com>
Date: Wed, 18 May 2011 08:37:38 -0700
To: Alex Mogilevsky <alexmog@microsoft.com>
CC: David Hyatt <hyatt@apple.com>, "www-style@w3.org CSS" <www-style@w3.org>
Message-ID: <C9F93508.2141%vhardy@adobe.com>
Hi Alex,

On 5/16/11 10:55 PM, "Alex Mogilevsky" <alexmog@microsoft.com> wrote:

> -----Original Message-----
> From: Vincent Hardy [mailto:vhardy@adobe.com]
> Sent: Friday, May 13, 2011 10:20 PM
> 
> In the current draft, that was the intention. But with the latest
> discussion, our current thinking is to have something like:
> 
> @region <region_sel> {
>     h1 { /* selects an h1 if _completely_ in region */ }
>     h1:lines {/* selects only the lines that are in the region */} }
> 
>
>To be honest I don't see how styling lines vs. styling the whole element
>is simplifying implementation. It may even make it more complicated (what
>if H1 fits in the region without region styling, but doesn't fit with
>it?).

I think that, conceptually, you would turn on the region styling for the
rest of the elements in the flow that have not been laid out yet. If an
element, like an H1, fits into the region, it keeps its styling. If it
does not fit in the region, then the styling is off, and it would be moved
to the next region.

>
>I think all that could be done for simplification is defining the
>behavior to be as close as possible to that of first-line (and that is
>already done). Then most of the logic is already in, and the hard work is
>optimizing the implementation to work with larger content (and to more
>combinations - first-line and first-page and hover...)

So you would be in favor of limiting it to:

@region <region_sel> {
     h1:lines {/* selects only the lines that are in the region */}
}


Or one of the syntactical variants we have discussed? And not include full
element selection for now?

Vincent
Received on Wednesday, 18 May 2011 15:38:08 GMT

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