RetroZilla/parser/htmlparser/tests/html/50050.html
2015-10-20 23:03:22 -04:00

29 lines
532 B
HTML

<HTML>
<HEAD>
<STYLE>
.abs {
position: absolute;
}
</STYLE>
<SCRIPT>
function showWidth(strName) {
dump(getComputedStyle(document.getElementById(strName),
null).getPropertyValue('width'));
}
</SCRIPT>
</HEAD>
<BODY>
<DIV CLASS="abs" ID="foo">
Single &lt;DIV&gt;
</DIV><BR><BR>
<INPUT TYPE="Button" VALUE="Test" onClick="showWidth('foo');">
<BR>
<DIV CLASS="abs">
<DIV CLASS="abs" ID="bar">
Nested &lt;DIV&gt;s
</DIV>
</DIV><BR><BR>
<INPUT TYPE="Button" VALUE="Test" onClick="showWidth('bar');">
</BODY>
</HTML>