diff options
Diffstat (limited to 'node_modules/doiuse/data/features/css-not-sel-list.js')
| -rw-r--r-- | node_modules/doiuse/data/features/css-not-sel-list.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/node_modules/doiuse/data/features/css-not-sel-list.js b/node_modules/doiuse/data/features/css-not-sel-list.js deleted file mode 100644 index ee745e7e..00000000 --- a/node_modules/doiuse/data/features/css-not-sel-list.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Selectors Level 3 only allowed `:not()` pseudo-class to accept a single simple selector, which the element must not match any of. Thus, `:not(a, .b, [c])` or `:not(a.b[c])` did not work. Selectors Level 4 allows `:not()` to accept a list of selectors. Thus, `:not(a):not(.b):not([c])` can instead be written as `:not(a, .b, [c])` and `:not(a.b[c])` works as intended. - * @see https://caniuse.com/css-not-sel-list - */ - -import { checkSelector } from '../../utils/util.js'; - -/** - * @type {import('../features').Feature} - */ -export default checkSelector( - (selector) => selector.includes(':not(') && !/:not\(.?#?-?[\w[\]-]+\)/.test(selector), -); |
