mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 719286 - Test for SVG glyph clipping r=jfkthame
This commit is contained in:
parent
c780416407
commit
8af4acb791
21
layout/reftests/text-svgglyphs/clip-ref.html
Normal file
21
layout/reftests/text-svgglyphs/clip-ref.html
Normal 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>
|
39
layout/reftests/text-svgglyphs/clip.html
Normal file
39
layout/reftests/text-svgglyphs/clip.html
Normal 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>
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user