Re: [selectors] Groups and repetition

You are right.

The experimental features are enabled in WebKit Nightly but disabled for stable versions of WebKit. If this feature needs to ship before it has any spec, that would be with -webkit- prefix.
 
Benjamin

> On Oct 21, 2014, at 11:56 AM, Pradeep Kumar <pradeep.online00@gmail.com> wrote:
> 
> Hi Benjamin, Francois,
> 
> I think Benjamin may implement them as experimental (with webkit prefix) and subsequently if consensus is there, he may ship them out.
> Please feel free to correct.
> 
> Regards,
> Pradeep Kumar
> 
> On Tue, Oct 21, 2014 at 10:27 PM, François REMY <francois.remy.dev@outlook.com <mailto:francois.remy.dev@outlook.com>> wrote:
> Hi Benjamin,
> 
> > Hi,
> >
> > I was gonna start implementing the filtered sibling selector
> > (http://lists.w3.org/Archives/Public/www-style/2014Oct/0210.html <http://lists.w3.org/Archives/Public/www-style/2014Oct/0210.html>)
> > in WebKit but it occurred to me that there is another syntax
> > with a simple implementation and more capabilities.
> 
> I’m glad to see you look so motivated to improve css selectors, but I’m
> afraid you may be escalating too fast from idea to implementation. I’m not a
> csswg member (yet ^_^), but I think the usual process (at least when someone
> proposes new features that require syntactic changes to CSS) is to wait for
> a consensus before trying to ship anything. I believe a minimum would be to
> have the matter discussed at some telcon or during the next TPAC.
> 
> 
> > Instead of creating a special purpose indirect sibling, we could
> > just extend the existing syntax by allowing groups and
> > repetition, similarly to regular expressions.
> >
> >    h1 ( + :not(h1, p))* + p
> >    == a paragraph
> >    == preceded by any number of siblings matching :not(h1, p)
> >    == preceded by a heading element
> 
> I very much like this idea. However, the syntax is problematic because "*"
> already means something in the context of selectors.
> 
> I would note that we already have a syntax for repetitions in CSS (the
> repeat function) which could be reused or adapted.
> 
> 
> 
> 

Received on Wednesday, 22 October 2014 04:39:15 UTC