Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/reftests/svg/style-property-on-script-element-01.svg
<!--
Any copyright is dedicated to the Public Domain.
-->
<title>Testcase ensuring 'style' is a property of SVGScriptElement</title>
<rect id="rect" width="100%" height="100%" fill="lime"/>
<script id="script" type="application/javascript">
if (typeof document.getElementById('script').style == 'undefined') {
document.getElementById('rect').setAttribute('fill', 'red');
}
</script>
</svg>