diff options
Diffstat (limited to 'node_modules/doiuse/data/features/css-nth-child-of.js')
| -rw-r--r-- | node_modules/doiuse/data/features/css-nth-child-of.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/node_modules/doiuse/data/features/css-nth-child-of.js b/node_modules/doiuse/data/features/css-nth-child-of.js deleted file mode 100644 index b1249f6f..00000000 --- a/node_modules/doiuse/data/features/css-nth-child-of.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * The newest versions of `:nth-child()` and `:nth-last-child()` accept an optional `of S` clause which filters the children to only those which match the selector list `S`. For example, `:nth-child(1 of .foo)` selects the first child among the children that have the `foo` class (ignoring any non-`foo` children which precede that child). Similar to `:nth-of-type`, but for arbitrary selectors instead of only type selectors. - * @see https://caniuse.com/css-nth-child-of - */ - -import { checkSelector } from '../../utils/util.js'; - -/** - * @type {import('../features').Feature} - */ -export default checkSelector( - (selector) => /:nth-(child|last-child)\(\s*\d+\s*of/.test(selector), -); |
