1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Add important priority to all styles set by the :make_visible option

This commit is contained in:
Thomas Walpole 2018-08-28 10:29:09 -07:00
parent 6472e2eccd
commit 68583899df

View file

@ -312,7 +312,7 @@ module Capybara
var css = arguments[0]; var css = arguments[0];
for (var prop in css){ for (var prop in css){
if (css.hasOwnProperty(prop)) { if (css.hasOwnProperty(prop)) {
this.style[prop] = css[prop] this.style.setProperty(prop, css[prop], "important");
} }
} }
JS JS