layout/reftests/text-svgglyphs/clip.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     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