layout/reftests/svg/text-language-01.xhtml

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 2 <head>
michael@0 3 <title>SVG, text, language...</title>
michael@0 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
michael@0 5 <style type="text/css">
michael@0 6 body {
michael@0 7 font-family: sans-serif;
michael@0 8 font-size: 24px;
michael@0 9 margin: 24px;
michael@0 10 }
michael@0 11 div {
michael@0 12 height: 100px;
michael@0 13 }
michael@0 14 </style>
michael@0 15 </head>
michael@0 16
michael@0 17 <!-- The reference is tagged as "en", the test cases as other languages.
michael@0 18 Expectation is that these will have different default fonts,
michael@0 19 so the test and reference should NOT match. -->
michael@0 20 <body>
michael@0 21 <div lang="ar" style="height:100px">
michael@0 22 <svg xmlns="http://www.w3.org/2000/svg" height="200">
michael@0 23 <text y="50">Hello world, 你好吗?</text>
michael@0 24 </svg>
michael@0 25 </div>
michael@0 26 <div lang="zh-TW" style="height:100px">
michael@0 27 <svg xmlns="http://www.w3.org/2000/svg" height="200">
michael@0 28 <text y="50">Hello world, 你好吗?</text>
michael@0 29 </svg>
michael@0 30 </div>
michael@0 31 <div lang="ja" style="height:100px">
michael@0 32 <svg xmlns="http://www.w3.org/2000/svg" height="200">
michael@0 33 <text y="50">Hello world, 你好吗?</text>
michael@0 34 </svg>
michael@0 35 </div>
michael@0 36 </body>
michael@0 37 </html>

mercurial