Skip to content

Commit

Permalink
Use getPropertyValue to get style props
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Sachs authored and Patrick-Sachs committed Nov 22, 2021
1 parent 631d720 commit 2a3070f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chai-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@
chai.Assertion.addMethod('style', function (styleProp, styleValue) {
var el = flag(this, 'object'),
style = window.getComputedStyle(el),
actual = style[styleProp];
actual = style.getPropertyValue(styleProp);

this.assert(
actual === styleValue
Expand Down

0 comments on commit 2a3070f

Please sign in to comment.