Files
Mozilla/mozilla/extensions/xmlterm/ui/content/styletest.html
(no author) b4b70055bb This commit was manufactured by cvs2svn to create branch
'AVIARY_1_0_20040515_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@156431 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-15 19:32:54 +00:00

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>