/parser/htmlparser/tests/html/50050.html
http://github.com/zpao/v8monkey · HTML · 28 lines · 28 code · 0 blank · 0 comment · 0 complexity · 5cb4983d1dac1b2792769cb4c4dc6d2c MD5 · raw file
- <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>