layout/reftests/text-svgglyphs/clip.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/text-svgglyphs/clip.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +<html class="reftest-wait">
     1.5 +  <!--
     1.6 +        This test makes sure that the glyph extents are being extended to
     1.7 +      the bounds of the SVG glyph by placing an SVG glyph in a div outside
     1.8 +      the truetype extents but inside the SVG extents
     1.9 +  -->
    1.10 +  <head>
    1.11 +    <style type="text/css">
    1.12 +      @font-face {
    1.13 +        font-family : svgttf;
    1.14 +        src : url(resources/svg.woff);
    1.15 +      }
    1.16 +
    1.17 +      body {
    1.18 +        font-family : svgttf;
    1.19 +        font-size : 200px;
    1.20 +        color : palevioletred;
    1.21 +      }
    1.22 +
    1.23 +      div {
    1.24 +        width : 160px;
    1.25 +        overflow : hidden;
    1.26 +      }
    1.27 +    </style>
    1.28 +    <script type="text/javascript">
    1.29 +      function expand() {
    1.30 +        var div = document.getElementById("thediv");
    1.31 +        div.style.width = "200px";
    1.32 +        document.documentElement.removeAttribute("class");
    1.33 +      }
    1.34 +      window.addEventListener("MozReftestInvalidate", expand, false);
    1.35 +    </script>
    1.36 +  </head>
    1.37 +  <body>
    1.38 +    <div id="thediv">
    1.39 +O<br>
    1.40 +    </div>
    1.41 +  </body>
    1.42 +</html>

mercurial