can-i-use.js 290 字节
Newer Older
Q
qiang 已提交
1
function cssSupports (css) {
2
  return window.CSS && window.CSS.supports && (window.CSS.supports(css) || window.CSS.supports('--a', 0))
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)')
}