summaryrefslogtreecommitdiff
path: root/node_modules/doiuse/data/features/css-placeholder-shown.js
blob: 1a92d39edfb4c884502cf8fb1e98513ae546a911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * :placeholder-shown CSS pseudo-class
 * Input elements can sometimes show placeholder text as a hint to the user on what to type in. See, for example, the placeholder attribute in HTML5. The :placeholder-shown pseudo-class matches an input element that is showing such placeholder text.
 * @see https://caniuse.com/css-placeholder-shown
 */

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

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