From 06a3028c6594bf8559be279c266eb377ea081c08 Mon Sep 17 00:00:00 2001 From: apiaget Date: Mon, 8 Oct 2018 18:39:44 +0200 Subject: [PATCH] fix(col): fix CSS is undefined error on IE11 (#15882) * fix(col): fix CSS is undefined error on IE11 * Update col.tsx --- core/src/components/col/col.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/components/col/col.tsx b/core/src/components/col/col.tsx index 36f1d6eb64..4aa38985ec 100644 --- a/core/src/components/col/col.tsx +++ b/core/src/components/col/col.tsx @@ -2,7 +2,7 @@ import { Component, ComponentInterface, Element, Listen, Prop } from '@stencil/c 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']; @Component({