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:
parent
6472e2eccd
commit
68583899df
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue