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.



Object tag with Width Attribute test

Object: OBJECT (WIDTH)


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

Test Instructions:

In the following samples you should see that the WIDTH 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 widths
    Test Case #2 sample java applet dimension scaling using relative widths

  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 widths

    Java Applet Dimensions Scaled Down (Reverse Scaling)

    original applet


    applet width=300


    applet width=200


    applet width=150


    applet width=100