| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd"> |
| <!--======================================================================--> |
| <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| <!--= Institute of Technology, Institut National de Recherche en =--> |
| <!--= Informatique et en Automatique, Keio University). All Rights =--> |
| <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| <!--======================================================================--> |
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="basic" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> |
| <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="ED" owner="CL" desc="language selector test" status="accepted" version="$Revision: 1.5 $" testname="$RCSfile: styling-css-05-b.svg,v $"> |
| <OperatorScript> |
| <Paragraph> |
| Tests the language selectors, :lang(c). The phrase "Good morning!" should be in green. The phrase "Bonne avant-midi!" should be in blue; in addition, the "avant-midi" should be italic because its Canadian French. |
| </Paragraph> |
| <Paragraph>Note that a less specific language (such as fr) also matches a more specific language (such as fr-CA) but a more specific language (such as en-GB) does not match a less specific language (such as en). |
| Also note that language tags,and thus language selectors are case-insensitive.</Paragraph> |
| </OperatorScript> |
| </SVGTestCase> |
| <title id="test-title">$RCSfile: styling-css-05-b.svg,v $</title> |
| <g id="test-body-content"> |
| <style type="text/css"> |
| :lang(en) { fill: green} |
| :lang(fr) { fill: blue } |
| :lang(fr-ca) {font-style: italic} |
| |
| </style> |
| <g text-anchor="middle" font-size="30"> |
| <text x="240" y="100" xml:lang="en">Good morning!</text> |
| <text x="240" y="200" xml:lang="fr">Bonne <tspan xml:lang="fr-CA">avant-midi</tspan>!</text> |
| </g> |
| </g> |
| <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| </svg> |