mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
29 lines
532 B
HTML
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 <DIV>
|
||
|
</DIV><BR><BR>
|
||
|
<INPUT TYPE="Button" VALUE="Test" onClick="showWidth('foo');">
|
||
|
<BR>
|
||
|
<DIV CLASS="abs">
|
||
|
<DIV CLASS="abs" ID="bar">
|
||
|
Nested <DIV>s
|
||
|
</DIV>
|
||
|
</DIV><BR><BR>
|
||
|
<INPUT TYPE="Button" VALUE="Test" onClick="showWidth('bar');">
|
||
|
</BODY>
|
||
|
</HTML>
|