W3C DOM tests - styleSheet tests

This is element x. It has inline style border: 1px solid #cc0000. Element y is the test style sheet.

Test scripts

addRule

y.addRule('pre','font-size: 150%')

deleteRule

y.deleteRule(y.cssRules.length-1)

insertRule

y.insertRule('pre {font-size: 150%}',y.cssRules.length)

removeRule

y.removeRule(y.rules.length-1)