Tests for bidi in SVG. a=test

This commit is contained in:
Simon Montagu 2011-01-04 00:49:44 -08:00
parent 8050f8a959
commit 9c4b77efe1
11 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
<text x="100" y="20">Bidi in SVG</text>
</svg>

After

Width:  |  Height:  |  Size: 115 B

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
<text x="100" y="20">&#x202e;GVS ni idiB&#x202c;</text>
</svg>

After

Width:  |  Height:  |  Size: 131 B

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
<text x="100" y="20">&#x202d;left-to-right text תירבע םע&#x202c;</text>
</svg>

After

Width:  |  Height:  |  Size: 154 B

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
<text x="100" y="20">left-to-right text עם עברית</text>
</svg>

After

Width:  |  Height:  |  Size: 138 B

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
<text x="100" y="20" direction="ltr" unicode-bidi="bidi-override">in right-to-left element תירבע םע left-to-right text</text>
</svg>

After

Width:  |  Height:  |  Size: 208 B

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
<text x="100" y="20" direction="rtl" unicode-bidi="embed">left-to-right text עם עברית in right-to-left element</text>
</svg>

After

Width:  |  Height:  |  Size: 200 B

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
<text x="100" y="20" direction="ltr" unicode-bidi="bidi-override">&#x0628;&gt;&#x0627;</text>
</svg>

After

Width:  |  Height:  |  Size: 169 B

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
<text x="100" y="20" direction="rtl" unicode-bidi="embed">&#x0627;&lt;&#x0628;</text>
</svg>

After

Width:  |  Height:  |  Size: 161 B

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
<text x="100" y="20" unicode-bidi="bidi-override">&#x1090C;&#x1090B;&#x10914;&#x10905;&#x10913;&#x10909;</text>
</svg>

After

Width:  |  Height:  |  Size: 186 B

View File

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200">
<text x="100" y="20">&#x10909;&#x10913;&#x10905;&#x10914;&#x1090B;&#x1090C;</text>
</svg>

After

Width:  |  Height:  |  Size: 158 B

View File

@ -9,6 +9,11 @@
== bidi-005.html bidi-005-ref.html
== bidi-006.html bidi-006-ref.html
== bidi-006-j.html bidi-006-ref.html
== bidiSVG-01.svg bidiSVG-01-ref.svg
== bidiSVG-02.svg bidiSVG-02-ref.svg
== bidiSVG-03.svg bidiSVG-03-ref.svg
== bidiSVG-04.svg bidiSVG-04-ref.svg
== bidiSVG-05.svg bidiSVG-05-ref.svg
random-if(layersGPUAccelerated) == visualmarquee.html marquee-ref.html
random-if(layersGPUAccelerated) == logicalmarquee.html marquee-ref.html
== visualmarquee.html logicalmarquee.html