Bug 719286 - Test for SVG glyph clipping r=jfkthame

This commit is contained in:
Edwin Flores 2012-09-06 16:58:47 +12:00
parent c780416407
commit 8af4acb791
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,21 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family : svgttf;
src : url(resources/svg.woff);
}
body {
font-family : svgttf;
font-size : 200px;
color : palevioletred;
}
</style>
</head>
<body>
<div>
O<br>
</div>
</body>
</html>

View File

@ -0,0 +1,39 @@
<html class="reftest-wait">
<!--
This test makes sure that the glyph extents are being extended to
the bounds of the SVG glyph by placing an SVG glyph in a div outside
the truetype extents but inside the SVG extents
-->
<head>
<style type="text/css">
@font-face {
font-family : svgttf;
src : url(resources/svg.woff);
}
body {
font-family : svgttf;
font-size : 200px;
color : palevioletred;
}
div {
width : 160px;
overflow : hidden;
}
</style>
<script type="text/javascript">
function expand() {
var div = document.getElementById("thediv");
div.style.width = "200px";
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", expand, false);
</script>
</head>
<body>
<div id="thediv">
O<br>
</div>
</body>
</html>

View File

@ -7,3 +7,4 @@ pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-objectfill-so
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-objectstroke-solid.svg svg-glyph-objectstroke-solid-ref.svg
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-objectgradient.svg svg-glyph-objectgradient-ref.svg
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-objectpattern.svg svg-glyph-objectpattern-ref.svg
pref(gfx.font_rendering.opentype_svg.enabled,true) == clip.html clip-ref.html