From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../tests/svg/import/text-tselect-02-f-manual.svg | 146 +++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 testing/web-platform/tests/svg/import/text-tselect-02-f-manual.svg (limited to 'testing/web-platform/tests/svg/import/text-tselect-02-f-manual.svg') diff --git a/testing/web-platform/tests/svg/import/text-tselect-02-f-manual.svg b/testing/web-platform/tests/svg/import/text-tselect-02-f-manual.svg new file mode 100644 index 0000000000..12be0f93f5 --- /dev/null +++ b/testing/web-platform/tests/svg/import/text-tselect-02-f-manual.svg @@ -0,0 +1,146 @@ + + + + + + + + + + + + +

+ This test demonstrates text selection of bidirectional text. +

+ + +

+ Run the test. No interaction required. +

+
+ +

+ 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. +

+
+ + $RCSfile: text-tselect-02-f.svg,v $ + + + + + + + + + + + + + + StartIndex: 0 NumChars: 0 + + + abc אבג 123 דהו def + + + + + startIndex++ + + + startIndex-- + + + numChars++ + + + numChars-- + + + + + $Revision: 1.6 $ + + + + + -- cgit v1.2.3