mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 790938 - Add a test for SVG-in-OpenType glyphs in a mask. r=eflores
This commit is contained in:
parent
ab15139e9e
commit
215ac7f023
@ -13,3 +13,4 @@ pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-objectopacity
|
||||
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-paintnone.svg svg-glyph-paintnone-ref.svg
|
||||
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-cachedopacity.svg svg-glyph-cachedopacity-ref.svg
|
||||
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-objectvalue.svg svg-glyph-objectvalue-ref.svg
|
||||
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-mask.svg svg-glyph-mask-ref.svg
|
||||
|
15
layout/reftests/text-svgglyphs/svg-glyph-mask-ref.svg
Normal file
15
layout/reftests/text-svgglyphs/svg-glyph-mask-ref.svg
Normal file
@ -0,0 +1,15 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: "Liberation";
|
||||
src: url(resources/svg.woff);
|
||||
}
|
||||
</style>
|
||||
<mask id="m" x="0" y="0" width="200" height="200">
|
||||
<rect x="30" y="60" width="80" height="80" stroke-width="5"
|
||||
stroke="black" fill="red"/>
|
||||
<rect x="30" y="50" width="10" height="10" stroke="none"
|
||||
fill="turquoise" />
|
||||
</mask>
|
||||
<rect width="200" height="200" mask="url(#m)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 459 B |
12
layout/reftests/text-svgglyphs/svg-glyph-mask.svg
Normal file
12
layout/reftests/text-svgglyphs/svg-glyph-mask.svg
Normal file
@ -0,0 +1,12 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: "Liberation";
|
||||
src: url(resources/svg.woff);
|
||||
}
|
||||
</style>
|
||||
<mask id="m" x="0" y="0" width="200" height="200">
|
||||
<text x="20" y="150" style="font: 100px Liberation">L</text>
|
||||
</mask>
|
||||
<rect width="200" height="200" mask="url(#m)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 339 B |
Loading…
Reference in New Issue
Block a user