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