- From: Simon Sapin <simon.sapin@exyr.org>
- Date: Thu, 18 Apr 2013 22:32:30 +0200
- 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