summaryrefslogtreecommitdiff
path: root/node_modules/doiuse/data/features/multibackgrounds.js
blob: 6ff704351780007968b76d0a725f864ae8e2ab53 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { list } from 'postcss';

/**
 * @param {import('postcss').ChildNode} rule
 * @return {boolean}
 */
export default (rule) => {
  if (rule.type !== 'decl') return false;
  if (!/^background-?/.test(rule.prop)) return false;
  return list.comma(rule.value).length > 1;
};