fix(col): fix CSS is undefined error on IE11 (#15882)

* fix(col): fix CSS is undefined error on IE11

* Update col.tsx
This commit is contained in:
apiaget
2018-10-08 18:39:44 +02:00
committed by Manu MA
parent 870a92f54b
commit 06a3028c65

View File

@ -2,7 +2,7 @@ import { Component, ComponentInterface, Element, Listen, Prop } from '@stencil/c
import { matchBreakpoint } from '../../utils/media'; import { matchBreakpoint } from '../../utils/media';
const SUPPORTS_VARS = !!(CSS && CSS.supports && CSS.supports('--a: 0')); const SUPPORTS_VARS = !!(window.CSS && window.CSS.supports && window.CSS.supports('--a: 0'));
const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl']; const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
@Component({ @Component({