Yes, so it turns out that making a small asthetic change after testing on every browser does actually break it :|

pull/1/head
Caleb James DeLisle 2018-07-12 16:51:48 +02:00
parent fabdbc3b61
commit cb8888ea1a
1 changed files with 1 additions and 1 deletions

View File

@ -843,8 +843,8 @@ define([
el.style.setProperty('background', 'var(--color)');
document.body.appendChild(el);
var styles = getComputedStyle(el);
document.body.removeChild(el);
var doesSupport = (styles.backgroundColor === color);
document.body.removeChild(el);
return doesSupport;
};