layout/reftests/text-svgglyphs/clip.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     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