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

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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

mercurial