Skip to content

Commit

Permalink
[infra] Skip styleMap priority test in IE11 (#3789)
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjk committed Apr 5, 2023
1 parent 4fbf9e4 commit ab4e9c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changeset/nice-pillows-cough.md
@@ -0,0 +1,2 @@
---
---
4 changes: 3 additions & 1 deletion packages/lit-html/src/test/directives/style-map_test.ts
Expand Up @@ -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');
Expand Down

0 comments on commit ab4e9c9

Please sign in to comment.