layout/reftests/font-features/fwid-spaces.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <!DOCTYPE HTML>
     2 <html lang="ja">
     3 <head>
     4 <title>Full-width variations of regular spaces</title>
     5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     7 <style type="text/css">
     9 body {
    10   margin: 5px;
    11 }
    13 #test, #test pre {
    14   font: 150% Hiragino Kaku Gothic ProN, Meiryo, sans-serif;
    15   -moz-font-feature-settings: "fwid" on;
    16   -webkit-font-feature-settings: "fwid" on;
    17   font-feature-settings: "fwid" on;
    18 }
    20 #test pre span {
    21   background-color: red;
    22 }
    24 pre {
    25   margin: 0;
    26   padding: 0;
    27 }
    28 </style>
    30 </head>
    31 <body>
    32 <p>Rows should all be the same length:</p>
    33 <div id="test">
    34 <pre><span> a b c A B C </span></pre>
    35 <pre><span>&#x3000;a&#x3000;b&#x3000;c&#x3000;A&#x3000;B&#x3000;C&#x3000;</span></pre>
    36 <pre><span>ba bA bb bB c</span></pre>
    37 <pre><span>ba&#x3000;bA&#x3000;bb&#x3000;bB&#x3000;c</span></pre>
    38 </div>
    39 </body>
    40 </html>

mercurial