summaryrefslogtreecommitdiff
path: root/node_modules/doiuse/data/features/css-focus-within.js
blob: f020462bcfe92edb9c356e08c4a52ebf51cc4011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * The `:focus-within` pseudo-class matches elements that either themselves match `:focus` or that have descendants which match `:focus`.
 *
 * See: https://caniuse.com/css-focus-within
 */

import { checkSelector } from '../../utils/util.js';

/**
 * @type {import('../features').Feature}
 */
export default checkSelector(':focus-within');