/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

  1. <HTML>
  2. <HEAD>
  3. <STYLE>
  4. .abs {
  5. position: absolute;
  6. }
  7. </STYLE>
  8. <SCRIPT>
  9. function showWidth(strName) {
  10. dump(getComputedStyle(document.getElementById(strName),
  11. null).getPropertyValue('width'));
  12. }
  13. </SCRIPT>
  14. </HEAD>
  15. <BODY>
  16. <DIV CLASS="abs" ID="foo">
  17. Single &lt;DIV&gt;
  18. </DIV><BR><BR>
  19. <INPUT TYPE="Button" VALUE="Test" onClick="showWidth('foo');">
  20. <BR>
  21. <DIV CLASS="abs">
  22. <DIV CLASS="abs" ID="bar">
  23. Nested &lt;DIV&gt;s
  24. </DIV>
  25. </DIV><BR><BR>
  26. <INPUT TYPE="Button" VALUE="Test" onClick="showWidth('bar');">
  27. </BODY>
  28. </HTML>