



raster image of types-dom-01-b.svg

Operator Script

Run the test. No interaction required. Make sure scripting is enabled.

Pass Criteria

For the test to pass, the values generated by script must match the values provided in the png image. The correct values are:

.getScreenCTM() for id "rotText": 0.42,0.42,-0.42,0.42,70.00,-60.00

.getCTM() for id "rotText": 0.42,0.42,-0.42,0.42,70.00,-60.00

.getTransformToElement() between id "rotText" and id "parentGroup": 0.42,0.42,-0.42,0.42,0.00,0.00

.getBBox() for 'blueCircle': .x=-50,.y=-50,.width=100,.height=100

.farthestViewportElement of blueCircle=svg-root

.nearestViewportElement of blueCircle=nestedSVG

Test Description

This test checks all the methods and properties of the SVGLocatable interface. Note the use of nested svg elements and testing against different elements in the hierarchy. Note that the values of .getScreenCTM() and .getCTM() can only be tested correctly if they are in the html-based test or the width and height of the root element is explicitly set to 480x360. The methods .getScreenCTM() and .getCTM() are tested from the rotated text element, the method .getBBox(), .getTransformToElement() is tested between the rotated text and its parent group, the method .getBBox() and the properties .farthestViewportElement and .nearestViewportElement are tested on the blue circle.