Set Edge < 16 as incompatible with css vars

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2019-05-06 17:44:10 +02:00 committed by Backportbot
parent 1a58d8c86f
commit 3a9738e433
1 changed files with 4 additions and 1 deletions

View File

@ -915,7 +915,10 @@ function initCore() {
// css variables fallback for IE
if (msie > 0 || trident > 0) {
cssVars({
watch: true
watch: true,
// set edge < 16 as incompatible
onlyLegacy: !(/Edge\/([0-9]{2})\./i.test(navigator.userAgent)
&& parseInt(/Edge\/([0-9]{2})\./i.exec(navigator.userAgent)[1]) < 16)
});
}