text-tselect-03-f

39.3% of the ink matches
fail - measured over 25568 pixels carrying ink in either image.

W3C reference (context only, see #200)

W3C reference (context only, see #200)

Foxglove

Foxglove

Difference

Difference
In the difference panel, red marks pixels that differ beyond tolerance and grey marks matching content. The tinted band, where present, is the <text id="revision"> legend every test carries: it renders in a fallback font this library cannot match, so it is excluded from the comparison entirely rather than failing every test.

What this test checks

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 &lt;= startIndex &lt;= 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.

View the source document at W3C