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

set style.cssText instead of just style

This commit is contained in:
Thomas Walpole 2017-01-09 15:19:12 -08:00
parent 4febe3a473
commit 913fea7f4c

View file

@ -280,7 +280,7 @@ module Capybara
script = <<-JS
var el = arguments[0];
if (el.hasOwnProperty('capybara_style_cache')) {
el.style=el.capybara_style_cache;
el.style.cssText = el.capybara_style_cache;
delete el.capybara_style_cache;
}
JS