| <?xml version="1.0" encoding="utf-8"?> |
| |
| |
| <svg version="1.2" baseProfile="tiny" xml:id="svg-root" width="100%" height="100%" |
| viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" |
| xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xe="http://www.w3.org/2001/xml-events"> |
| <!--======================================================================--> |
| <!--= Copyright 2007 World Wide Web Consortium, (Massachusetts =--> |
| <!--= Institute of Technology, European Research Consortium for =--> |
| <!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| <!--= All Rights Reserved. =--> |
| <!--= See http://www.w3.org/Consortium/Legal/. =--> |
| <!--======================================================================--> |
| <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" |
| reviewer="[reviewer]" owner="[owner]" desc="[desc]" status="empty" |
| approved="no" |
| version="$Revision: 1.4 $" testname="$RCSfile: text-anchor.php,v $"> |
| |
| <d:OperatorScript xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml"> |
| <p> |
| When ltr direction is inherited by the text element, and text-anchor is set to middle, Latin, Arabic and Hebrew text will extend to either side of the x coordinate. </p> |
| </d:OperatorScript> |
| </SVGTestCase> |
| <title xml:id="test-title">$RCSfile: text-anchor.php,v $</title> |
| |
| <g xml:id="test-body-content" font-family="Arial" font-size="18"> |
| |
| <textArea x="20" y="40" width="400" height="60" font-size="10" fill="teal">Assertion: When ltr direction is inherited by the text element, and text-anchor is set to middle, Latin, Arabic and Hebrew text will extend to either side of the x coordinate.</textArea> |
| <textArea x="20" y="80" width="400" height="60" font-size="10" fill="#FFA500">The text below should show extend horizontally from the position of the red cross in the direction of the arrow.</textArea> |
| |
| <g direction="ltr"><text text-anchor="middle" x="230" y="160" font-size="10">Making the world wide web truly world wide</text><text text-anchor="middle" x="230" y="195" font-size="10">ליצור מהרשת רשת כלל עולמית באמת</text> <text text-anchor="middle" x="230" y="235" font-size="10">جعل شبكة الويب العالميّة عالميّة حقًّا</text></g> |
| <image x="168" y="110" width="128" height="26" xlink:href="resources/tanchor-left-right.png"> <title>Reference graphic</title> |
| </image> |
| |
| </g> |
| <g font-family="Arial" font-size="32"> |
| <text xml:id="revision" x="10" y="340" stroke="none" font-size="6" |
| fill="black">$Revision: 1.4 $</text> |
| </g> |
| <rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| <!-- comment out this watermark once the test is approved --> |
| <g xml:id="draft-watermark"> |
| <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| |
| <text font-family="Arial" font-weight="bold" font-size="20" x="240" |
| text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| </g> |
| </svg> |