From ab4e9c94975218be7de1bd48e1678d10db78abf0 Mon Sep 17 00:00:00 2001 From: Augustine Kim Date: Wed, 5 Apr 2023 12:46:15 -0700 Subject: [PATCH] [infra] Skip `styleMap` priority test in IE11 (#3789) --- .changeset/nice-pillows-cough.md | 2 ++ packages/lit-html/src/test/directives/style-map_test.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changeset/nice-pillows-cough.md diff --git a/.changeset/nice-pillows-cough.md b/.changeset/nice-pillows-cough.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/nice-pillows-cough.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/lit-html/src/test/directives/style-map_test.ts b/packages/lit-html/src/test/directives/style-map_test.ts index eceef044da..2ef950a15d 100644 --- a/packages/lit-html/src/test/directives/style-map_test.ts +++ b/packages/lit-html/src/test/directives/style-map_test.ts @@ -133,7 +133,9 @@ suite('styleMap', () => { assert.equal(el.style.getPropertyValue('--size'), ''); }); - test('adds priority in updated properties', () => { + // IE does not seeem to properly handle priority argument to + // CSSStyleDeclaration.setProperty() + (isIE ? test.skip : test)('adds priority in updated properties', () => { renderStyleMap({color: 'blue !important'}); const el = container.firstElementChild as HTMLElement; assert.equal(el.style.getPropertyValue('color'), 'blue');