W3C home > Mailing lists > Public > www-style@w3.org > April 2013

Re: [shadowdom] specificity of ::distributed()

From: Simon Sapin <simon.sapin@exyr.org>
Date: Thu, 18 Apr 2013 22:32:30 +0200
Message-ID: <5170585E.6090707@exyr.org>
To: www-style@w3.org
Le 18/04/2013 21:54, Tab Atkins Jr. a écrit :
> On Thu, Apr 18, 2013 at 12:19 PM, mozer<xmlizer@gmail.com>  wrote:
>> >Is there any tool somewhere doing this computation ?
> You mean computing a selector's specificity?  I'd look to JS CSS
> parser engines, like JSCSSP.  I'm sure there are several similar
> things in other languages, too.

cssselect (in Python) does compute specificity, but does not implement 
::distributed()

http://pythonhosted.org/cssselect/
https://github.com/SimonSapin/cssselect/blob/master/cssselect/parser.py#L88

-- 
Simon Sapin
Received on Thursday, 18 April 2013 20:32:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:10 UTC