XMLterm changes only. Added test HTML documents to exercise xpcom/css/dom features used by xmlterm. git-svn-id: svn://10.0.0.236/trunk@80816 18797224-902f-48f8-a5cc-f745e15eee43
22 lines
578 B
HTML
22 lines
578 B
HTML
<!-- xpctest.html: Tests DOM access to style sheets -->
|
|
<html><head>
|
|
<style type="text/css">
|
|
SPAN.test { color: green }
|
|
</style>
|
|
<script language="JavaScript">
|
|
function onLoad()
|
|
{
|
|
var sheet = window.document.styleSheets[0];
|
|
dump("sheet = "+sheet+"\n");
|
|
|
|
var rule = sheet.cssRules[0];
|
|
dump("rule = "+rule+"\n");
|
|
|
|
var selectorText = rule.selectorText;
|
|
dump("selectorText = '"+selectorText+"' (correct value is 'SPAN.test')\n");
|
|
}
|
|
</script>
|
|
</head><body onload="return onLoad();">
|
|
<SPAN class="test">STYLE TEST<SPAN>
|
|
</body></html>
|