4 background-color: #
00ff00;
9 background-color: #ff0000;
12 <script src='../../resources/js-test.js'
></script>
14 <button disabled
>Click Me!
</button>
18 function shouldHaveBackground(element
, bg
) {
19 background
= getComputedStyle(element
, null).getPropertyValue('background-color');
20 shouldBeEqualToString('background', bg
);
22 description('Style :active should not be applied for disabled Form Control elements');
23 if (window
.testRunner
) {
24 var box
= document
.getElementById('outbox');
26 eventSender
.dragMode
= false;
28 var button
= document
.querySelector('button');
29 var buttonRect
= button
.getBoundingClientRect();
31 eventSender
.mouseMoveTo(buttonRect
.left
+ 5, buttonRect
.top
+ 5);
32 eventSender
.mouseDown();
33 shouldHaveBackground(box
, 'rgb(0, 255, 0)');
34 eventSender
.mouseUp();