layout/reftests/text-svgglyphs/clip.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 <html class="reftest-wait">
     2   <!--
     3         This test makes sure that the glyph extents are being extended to
     4       the bounds of the SVG glyph by placing an SVG glyph in a div outside
     5       the truetype extents but inside the SVG extents
     6   -->
     7   <head>
     8     <style type="text/css">
     9       @font-face {
    10         font-family : svgttf;
    11         src : url(resources/svg.woff);
    12       }
    14       body {
    15         font-family : svgttf;
    16         font-size : 200px;
    17         color : palevioletred;
    18       }
    20       div {
    21         width : 160px;
    22         overflow : hidden;
    23       }
    24     </style>
    25     <script type="text/javascript">
    26       function expand() {
    27         var div = document.getElementById("thediv");
    28         div.style.width = "200px";
    29         document.documentElement.removeAttribute("class");
    30       }
    31       window.addEventListener("MozReftestInvalidate", expand, false);
    32     </script>
    33   </head>
    34   <body>
    35     <div id="thediv">
    36 O<br>
    37     </div>
    38   </body>
    39 </html>

mercurial