zimmermann@webkit.org | 7208fe3 | 2011-03-15 20:15:17 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | |
| 3 | |
| 4 | <svg version="1.2" baseProfile="tiny" xml:id="svg-root" width="100%" height="100%" |
| 5 | viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" |
| 6 | xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xe="http://www.w3.org/2001/xml-events"> |
| 7 | <!--======================================================================--> |
| 8 | <!--= Copyright 2007 World Wide Web Consortium, (Massachusetts =--> |
| 9 | <!--= Institute of Technology, European Research Consortium for =--> |
| 10 | <!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 11 | <!--= All Rights Reserved. =--> |
| 12 | <!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 13 | <!--======================================================================--> |
| 14 | <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 15 | reviewer="[reviewer]" owner="Richard Ishida" desc="SVG Tiny bidi tests" status="empty" |
| 16 | approved="no" |
| 17 | version="$Revision: 1.7 $" testname="$RCSfile: direction-unicode-bidi.php,v $"> |
| 18 | |
| 19 | <d:OperatorScript xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml"> |
| 20 | <p>In a RTL context, if direction(ltr)+unicode-bidi(embed) are applied to a LTR inline element containing mixed direction text, the text in that element will be displayed correctly.</p> |
| 21 | <p>Pass/fail criterion: The characters in the text immediately below should be in the same order as in the reference graphic below it. Font glyph differences are ok.</p> |
| 22 | </d:OperatorScript> |
| 23 | </SVGTestCase> |
| 24 | <title xml:id="test-title">$RCSfile: direction-unicode-bidi.php,v $_GET['test']; ?>,v $</title> |
| 25 | |
| 26 | <g xml:id="test-body-content" font-family="Arial" font-size="18"> |
| 27 | |
| 28 | <textArea x="20" y="40" width="400" height="60" font-size="10" fill="#008080">Assertion: In a RTL context, if direction(ltr)+unicode-bidi(embed) are applied to a LTR inline element containing mixed direction text, the text in that element will be displayed correctly.</textArea> |
| 29 | <textArea x="20" y="80" width="400" height="60" font-size="10" fill="#FFA500">The characters in the text immediately below should be in the same order as in the reference graphic below it. Font glyph differences are ok.</textArea> |
| 30 | |
| 31 | <text x="230" y="150" text-anchor="middle" direction="rtl">نشاط التدويل "<tspan direction="ltr" unicode-bidi="embed">dirLTR ubEmbed, اختبار</tspan>"!</text> |
| 32 | <text x="20" y="180" font-size="10" fill="#FFA500">Reference graphic:</text> |
| 33 | |
| 34 | <image x="60" y="180" width="350" height="39" xlink:href="resources/img15.png"> <title>Reference graphic</title> |
| 35 | </image> |
| 36 | |
| 37 | </g> |
| 38 | <g font-family="Arial" font-size="32"> |
| 39 | <text xml:id="revision" x="10" y="340" stroke="none" font-size="6" |
| 40 | fill="black">$Revision: 1.7 $</text> |
| 41 | </g> |
| 42 | <rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 43 | <!-- comment out this watermark once the test is approved --> |
| 44 | <g xml:id="draft-watermark"> |
| 45 | <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 46 | |
| 47 | <text font-family="Arial" font-weight="bold" font-size="20" x="240" |
| 48 | text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 49 | </g> |
| 50 | </svg> |