- From: Vincent Hardy <vhardy@adobe.com>
- Date: Thu, 12 Apr 2012 21:31:11 -0700
- To: Brad Kemper <brad.kemper@gmail.com>, Christoph Päper <christoph.paeper@crissov.de>
- CC: "Tab Atkins Jr." <jackalmage@gmail.com>, David Hyatt <hyatt@apple.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Hello, Is there anybody who would still want something else than the @region syntax? I see that Christophe sent a clarification about what his proposal was, but since this was prefixed by a JFTR, it seems that we have consensus on sticking with the @region syntax. I am fine with sticking with @region even though I have been back and forth on this topic. The reason I was feeling warmer to the pseudo-element syntax is that it opened the use of getComputedSytle(elem, pseudo-class). But we can think about alternate ways of providing access to the used style for the fragment of an element falling into a particular region. To address Fantasai's original concern, would it make sense to say that the @region rule modifies the specificity of the selectors it contains or would that be heresy? Vincent On Mar 20, 2012, at 5:29 PM, Brad Kemper wrote: > > > On Mar 20, 2012, at 12:18 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote: > >> On Tue, Mar 20, 2012 at 12:12 PM, David Hyatt <hyatt@apple.com> wrote: >>> On Mar 20, 2012, at 12:55 PM, Tab Atkins Jr. wrote: >>>> On Tue, Mar 20, 2012 at 10:35 AM, David Hyatt <hyatt@apple.com> wrote: >>>>> I would strongly prefer we use pseudo-classes here. I don't get why we would want to use pseudo-elements. We're not talking about a unique object as we are with other pseudo-elements. We're just talking about how an element itself looks in a particular region. In the example above the portion of <h1> that is in a region is still the <h1>, so I think a pseudo-class is far more appropriate. >>>> >>>> "The portion of <h1> that is in a region" is a unique object, though, >>>> just like "the portion of <p> in the first line" is. A pseudoclass >>>> just filters elements, exactly like a normal class would, so any >>>> properties would still apply to the *whole* <h1>. >>> >>> I should back up and say I hate using pseudo-classes and pseudo-elements for this at all and still think the @region syntax is far superior to both. >>> >>> http://dev.w3.org/csswg/css3-regions/#the-at-region-style-rule >>> >>> I think what's specified there is far easier to read and understand for authors than pseudo-elements would be. >> >> I agree. Just saying. ^_^ > > Me three. I like the @region syntax.
Received on Friday, 13 April 2012 04:31:54 UTC