Test that viewer correctly implements the "view_context" object behavior, on a basic HTML-to-CGM link.

At the start of the test, the right-hand frame should display some HTML text containing a string, "Click to view a WebCGM object with view context." The hyperlink on the HTML text points to a local WebCGM instance, that contains drawings of four cylinders objects, drawn in black on a white background. Two of the objects have 'name' APS attributes with value "smallCylinders", and the other two have 'name' APS attributes with value "bigCylinders", and each cylinder has a unique APS id parameter value.

The hyperlink in the source HTML text contains a fragment which selects "smallTopCylinder" by id, and specifies the object behavior "view_context" -- upon execution of the hyperlink, the selected object shall effectively be zoomed. It contains a 'viewcontext' APS attribute whose value just encloses the small top cylinder and a little bit of its surroundings. The WebCGM picture, for reference, contains a dotted rectangle that is slightly smaller than the 'viewcontext' of the object.

In addition to being zoomed to the view context, the target object shall be highlighted. The exact method of highlighting is viewer dependent.

The initial view in the left-hand frame is a PNG reference image of one correct rendering of how the target WebCGM instance should appear in the right-hand frame after activating the link in the HTML source instance. WebCGM does not specify exactly how the view context should fit into the display frame. The reference picture shows one valid fit. Others are possible, especially if the view context and the display frame have different aspect ratios. The method of object highlighting may also vary. The reference image shows one valid method -- the border is outlined in red. Any other visual highlighting method -- e.g., changing the color of the whole object -- is equally acceptable.

You should be able to use the browser "Back" and "Forward" buttons to go back and forth between the target WebCGM picture the source HTML text in the right-hand frame. Note, however, that this latter normal browser behavior is not part of the WebCGM standard, and it is not a pass/fail criterion for WebCGM viewers for this test.