struct-cond-210-t

raster image of struct-cond-210-t

This test evaluates the effects of the switch statement on referencing content such as gradients or elements. The result should be a yellow rectangle in the center of the output window, with green circles in three of the corners of the rectangle.

The rendered picture should match the reference image, except for possible variations in the labelling text (per CSS2 rules). The pass condition is seeing three circles, one solid green circle in upper right corner of the rectangle, and a circle with a green gradient in each of the bottom corners of the rectangle. If a red or black circle is visible in the upper left corner of the rectangle, the test cannot be evaluated because the 'switch' is not correctly supported. If any of the upper-right or lower circles is not visible, or does not have the correct fill, the test is failed. If the bottom-right circle is not visible or does not have the gradient fill, then the 'switch' is not correctly supported, and does not allow one conditionally hidden resource to reference another.

The test uses the 'rect', 'circle', 'gradient', and 'use' elements, as well as basic fill (solid primary colors) and radial gradients.