mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 801467 - Test that url(#id) references work in OpenType SVG glyph documents. r=roc
This commit is contained in:
parent
37cb83eb09
commit
e9d524573a
@ -18,4 +18,4 @@ pref(gfx.font_rendering.opentype_svg.enabled,true) random-if(winWidget) == sv
|
||||
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) fails == svg-glyph-mask.svg svg-glyph-mask-ref.svg # bug 872483
|
||||
|
||||
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-paint-server.svg svg-glyph-paint-server-ref.svg # bug 801467
|
||||
|
@ -0,0 +1,28 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<!--
|
||||
SVG test glyphs for paint servers within SVG glyphs
|
||||
e: tests that we can refer to paint servers within the SVG glyph doc
|
||||
(i.e. fill="url(#grad)" works)
|
||||
f: tests that stop-color="context-{fill,stroke}" uses the context fill/stroke
|
||||
fallback color
|
||||
-->
|
||||
<defs>
|
||||
<linearGradient id="grad">
|
||||
<stop offset="0%" stop-color="papayawhip" />
|
||||
<stop offset="100%" stop-color="plum" />
|
||||
</linearGradient>
|
||||
|
||||
<linearGradient id="grad2">
|
||||
<stop offset="0%" stop-color="context-fill" />
|
||||
<stop offset="100%" stop-color="context-stroke" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<!-- char 'e' -->
|
||||
<rect id="glyph71" x="250" y="-750" width="500" height="500"
|
||||
fill="url(#grad)" />
|
||||
|
||||
<!-- char 'f' -->
|
||||
<rect id="glyph72" x="250" y="-750" width="500" height="500"
|
||||
fill="url(#grad2)" />
|
||||
</svg>
|
After Width: | Height: | Size: 880 B |
Binary file not shown.
@ -0,0 +1,10 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<linearGradient id="grad">
|
||||
<stop offset="0%" stop-color="papayawhip" />
|
||||
<stop offset="100%" stop-color="plum" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<rect x="50" y="50" width="100" height="100" fill="url(#grad)" />
|
||||
</svg>
|
After Width: | Height: | Size: 287 B |
21
layout/reftests/text-svgglyphs/svg-glyph-paint-server.svg
Normal file
21
layout/reftests/text-svgglyphs/svg-glyph-paint-server.svg
Normal file
@ -0,0 +1,21 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<style type="text/css">
|
||||
<![CDATA[
|
||||
@font-face {
|
||||
font-family: "Liberation";
|
||||
src:url(resources/svg.woff);
|
||||
}
|
||||
text
|
||||
{
|
||||
font-family: Liberation;
|
||||
font-size: 200px;
|
||||
}
|
||||
]]>
|
||||
</style>
|
||||
<!--
|
||||
Test that paintservers within SVG glyph documents are rendered properly
|
||||
-->
|
||||
<text x="0" y="200">
|
||||
e
|
||||
</text>
|
||||
</svg>
|
After Width: | Height: | Size: 421 B |
Loading…
Reference in New Issue
Block a user