1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
10 background-color: red;
12 input, fieldset, legend, label, datalist, optgroup, option, keygen, output, meter, progress {
13 background-color: lime;
18 <p id=
"description"></p>
21 <fieldset id=fieldset
>
22 <legend id=legend
></legend>
24 <label id=label
></label>
25 <datalist id=datalist
></datalist>
27 <optgroup id=optgroup
></optgroup>
28 <option id=option
></option>
31 <output id=output
></output>
32 <meter id=meter
></meter>
33 <progress id=progress
></progress>
36 <div id=
"console"></div>
38 description('Check cases that :required/:optional classes are not applied');
40 function getBackgroundColor(id
) {
41 var element
= document
.getElementById(id
);
42 return document
.defaultView
.getComputedStyle(element
, null).getPropertyValue('background-color')
58 var normalColor
= 'rgb(0, 255, 0)';
59 for (var i
= 0; i
< identifiers
.length
; i
++)
60 shouldBe('getBackgroundColor("' + identifiers
[i
] + '")', 'normalColor');
62 document
.getElementById('victims').innerHTML
= '';