can-i-use.js 286 字节
Newer Older
Q
qiang 已提交
1
function cssSupports (css) {
2
  return window.CSS && CSS.supports && (CSS.supports(css) || CSS.supports.apply(CSS, css.split(':')))
Q
qiang 已提交
3 4
}

fxy060608's avatar
fxy060608 已提交
5
export default {
Q
qiang 已提交
6 7 8 9
  'css.var': cssSupports('--a:0'),
  'css.env': cssSupports('top:env(a)'),
  'css.constant': cssSupports('top:constant(a)')
}