1 <html xmlns=
"http://www.w3.org/1999/xhtml">
3 <style type=
"text/css">
4 span
{background: white
;display:none
}
5 span:lang
(de
) {background: red
}
8 function log(message
) {
9 document
.getElementById("console").innerHTML
+= message
;
13 if (window
.testRunner
)
14 testRunner
.dumpAsText();
16 var i
= document
.getElementById("emptyLang");
17 if (document
.defaultView
.getComputedStyle(i
, null).getPropertyValue('background-color') != "rgb(255, 255, 255)") {
21 var i2
= document
.getElementById("emptyXmlLang");
22 if (document
.defaultView
.getComputedStyle(i2
, null).getPropertyValue('background-color') != "rgb(255, 255, 255)") {
26 var i3
= document
.getElementById("noLang");
27 if (document
.defaultView
.getComputedStyle(i3
, null).getPropertyValue('background-color') != "rgb(255, 0, 0)") {
35 <body onload=
"test()">
36 <p>Tests if empty language declarations are supported
</p>
38 <span lang=
"" id=
"emptyLang"/>
39 <span xml:
lang=
"" id=
"emptyXmlLang"/>
42 <div id=
"console"></div>