specificity
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "specificity", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Calculate the specificity of a CSS selector", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -48,3 +48,3 @@ var SPECIFICITY = (function() { | ||
attributeRegex = /(\[[^\]]+\])/g, | ||
idRegex = /(#[^\s\+>~\.\[:]+)/g, | ||
idRegex = /(#[^\#\s\+>~\.\[:]+)/g, | ||
classRegex = /(\.[^\s\+>~\.\[:]+)/g, | ||
@@ -51,0 +51,0 @@ pseudoElementRegex = /(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi, |
@@ -55,2 +55,6 @@ var specificity = require('../'), | ||
{ selector: '#home .\\[page\\]', expected: '0,1,1,0' }, /* <p id="home"><p class="[page]"></p></p> */ | ||
// Test repeated IDs | ||
// https://github.com/keeganstreet/specificity/issues/29 | ||
{ selector: 'ul#nav#nav-main li.active a', expected: '0,2,1,3' }, | ||
]; | ||
@@ -57,0 +61,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18591
321