<
svg id="svg-root"
width="450"
height="450"
onload="onEvent(evt, 'Rect6', 'visible')" xmlns:xlink="
http://www.w3.org/1999/xlink" xmlns="
http://www.w3.org/2000/svg" >
<
title id="test-title">interact-onload-BE-07</
title>
<
desc id="test-desc">
Test 'onload' event attribute.
</
desc>
<
g id="test-body-content">
<
defs>
<
script type="text/ecmascript">
function onEvent(evt, indicatorId, visibilityValue){
// Get Document
var target = evt.target;
var doc = target.ownerDocument;
// Mark test as passed
var elementToShow = doc.getElementById(indicatorId);
elementToShow.setAttribute('style', 'visibility:'+visibilityValue);
}
</
script>
</
defs>
<
text style="
font-family:Helvetica;
font-size:16;
text-anchor:middle;"
x="225"
y="20">
Test 'onload' event attribute.
</
text>
<
g style="
text-anchor:middle;
font-family:Helvetica;
font-size:16;
fill:blue;
stroke:none;">
<
g transform="translate(62.5,60)">
<
rect id="Rect1"
width="75"
height="75"
style="
visibility:hidden;"/>
<
text x="37.5"
y="90"
style="
fill:red;">1: No</
text>
</
g>
<
g transform="translate(187.5,60)">
<
rect id="Rect2"
width="75"
height="75"
onload="onEvent(evt, 'Rect2', 'visible')"
style="
visibility:hidden;"/>
<
text x="37.5"
y="90"
style="
fill:red;">2: Yes</
text>
</
g>
<
g transform="translate(312.5,60)">
<
g onload="onEvent(evt, 'Rect3', 'visible')">
<
rect id="Rect3"
width="75"
height="75"
style="
visibility:hidden;"/>
</
g>
<
text x="37.5"
y="90"
style="
fill:red;">3: Yes</
text>
</
g>
<
g transform="translate(62.5,195)">
<
svg width="200"
height="200"
onload="onEvent(evt, 'Rect4', 'visible')">
<
rect id="Rect4"
width="75"
height="75"
style="
visibility:hidden;"/>
</
svg>
<
text x="37.5"
y="90"
style="
fill:red;">4: Yes</
text>
</
g>
<
g transform="translate(187.5,195)">
<
g onload="onEvent(evt, 'Rect5', 'hidden')">
<
rect id="Rect5"
width="75"
height="75"
onload="onEvent(evt, 'Rect5', 'visible')"
style="
visibility:hidden;"/>
</
g>
<
text x="37.5"
y="90"
style="
fill:red;">5: No</
text>
</
g>
<
g transform="translate(312.5,195)">
<
rect id="Rect6"
width="75"
height="75"
style="
visibility:hidden;"/>
<
text x="37.5"
y="90"
style="
fill:red;">6: Yes</
text>
</
g>
</
g>
<
g transform="translate(15,325)"
style="
font-family:Helvetica;
font-size:12;
fill:black;
stroke:none;">
<
text y="0">Six blue rectangles, each initially defined with 'visibility:hidden'.</
text>
<
text y="15">'onload' events cause a script to set 'visibility:visible' in some cases.</
text>
<
text y="30">The red text indicates the correct behavior (whether rectangle should appear).</
text>
</
g>
</
g>
<
g id="test-legend"
style="
fill:black;
font-family:Helvetica;
font-size:10;">
<
rect x="10"
y="390"
width="275"
height="50"
style="
fill:none;
stroke:#000000;"/>
<
path style="
fill:none;
stroke:#000000;"
d="M10 405 h275 M205 405 v35 M10 426 h195 M205 422 h80"/>
<
text x="25"
y="401">Scalable Vector Graphics (SVG) Conformance Suite</
text>
<
a xlink:href="copyright-documents-19990405.html">
<
text x="12"
y="437"
style="
fill:blue;">
Copyright 2000 W3C. All Rights Reserved.
</
text>
</
a>
<
text style="
font-size:12;"
x="35"
y="420">interact-onload-BE-07</
text>
<
text style="
font-size:10;"
x="210"
y="417">$Revision: 1.1 $</
text>
<
text style="
font-size:10;"
x="210"
y="435">Release 2.0</
text>
<
rect id="test-frame"
x="1"
y="1"
width="448"
height="448"
style="
fill:none;
stroke:#000000;"/>
</
g>
</
svg>