Tests that contain the draft-watermark are under development and may be incorrectly testing a feature.

text-tselect-02-f.svg

raster image of text-tselect-02-f.svg

Operator Script

Run the test. No interaction required.

Pass Criteria

The initial result should be that the first 9 characters in logical order starting from logical position 0 are selected.

Visually the selection is discontigous and these substrings must be selected (listed in visual order):

"abc"

the space between "c" and "ו"

"1"

the space between "3" and "ג"

"אבג"

If only the substrings listed above were selected then the test has passed.

A user agent that allows selecting text in logical order would have generated the same selection as in this testcase if the user started the selection on the character "a" and ended it on the character "1". A user agent that allows selecting text in visual order would not have a discontigous selection if the user started the selection on the character "a" and ended it on the character "1". The copied text would be discontigous instead in this case. Note that the SVG DOM method requires logical order text selection, so for both types of user agents this testcase must look the same.

The testcase also shows what happens when the selection is modified via DOM (click the buttons below the bidi-text). Compliant viewers must throw an exception when the first parameter handed to SVGTextContentElement.selectSubString is out-of-range. That means the variable 'startIndex' must always be in the range 0 <= startIndex <= 18. It can be noted that the parameter 'numChars' is not restricted in this way.

Note that the color of the text selection is UA dependent and not defined in the SVG specification.

Test Description

This test demonstrates text selection of bidirectional text.