diff --git a/chai-dom.js b/chai-dom.js index ce542e0..23a3d31 100644 --- a/chai-dom.js +++ b/chai-dom.js @@ -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).trim(); this.assert( actual === styleValue