You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



HTML tag Object Height Attribute test

OBJECT (HEIGHT)


This test case tests the <APPLET> tag with its mandatory HEIGHT attribute. The HEIGHT attribute can either be an absolute height using an integer value of pixels or a relative height using a relative percentage value.

Test Instructions:

In the following samples you should see that the HEIGHT attribute applies absolute integer numbers of pixels or relative percentages to the java applet. This tells the browser to scale the java applet so many pixels or percentage of the original object.

  1. Verify that the samples display as stated in each of the following test cases:
  2. Test Case #1 sample java applet dimension scaling using absolute heights
    Test Case #2 sample java applet dimension scaling using relative heights

  3. Verify that the java applet is maintained when you minimize/maximize the screen.
  4. Verify that the java applet is maintained when you re-size left & right the screen.
  5. Verify that the java applet is maintained when you re-size top & bottom the screen.
  6. Verify re-draw takes place correctly after maximizing the screen.
  7. Verify reload works.


Test Case #1: sample java applet dimension scaling using absolute heights
(using <APPLET CODEBASE=class pathname CODE="class name" HEIGHT=integer value> </APPLET>)

    Java Applet Dimensions Scaled Down (Reverse Scaling)

    original applet


    applet height=65


    applet height=50


    applet height=25


    applet height=15