Bug 719286 - Tests for -moz-objectValue keyword in SVG glyphs r=roc

This commit is contained in:
Edwin Flores 2012-09-06 16:58:47 +12:00
parent 084d09b993
commit 849dff4f0c
5 changed files with 55 additions and 0 deletions

View File

@ -12,3 +12,4 @@ pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-objectopacity
pref(gfx.font_rendering.opentype_svg.enabled,true) == svg-glyph-objectopacity2.svg svg-glyph-objectopacity2-ref.svg
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

View File

@ -90,4 +90,24 @@
<rect x="100" y="-400" width="800" height="300" stroke="red" stroke-width="50" id="ychild" />
</g>
<!-- a -->
<rect x="100" y="-900" width="800" height="800" stroke="powderblue"
stroke-width="50" stroke-dashoffset="35"
stroke-dasharray="50 50" glyphchar="a" />
<!-- b -->
<rect x="100" y="-900" width="800" height="800" stroke="chartreuse"
stroke-width="50" stroke-dashoffset="35"
stroke-dasharray="-moz-objectValue" glyphchar="b" />
<!-- c -->
<rect x="100" y="-900" width="800" height="800" stroke="sienna"
stroke-width="50" stroke-dasharray="50 50"
stroke-dashoffset="-moz-objectValue" glyphchar="c" />
<!-- d -->
<rect x="100" y="-900" width="800" height="800" stroke="olivedrab"
stroke-width="-moz-objectValue" stroke-dasharray="-moz-objectValue"
stroke-dashoffset="-moz-objectValue" glyphchar="d" />
</svg>

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg">
<style type="text/css"><![CDATA[
rect {
stroke-width: 10;
stroke-dasharray: 10 10;
stroke-dashoffset: 7;
}
]]></style>
<rect x="20" y="20" width="160" height="160" stroke="powderblue" />
<rect x="220" y="20" width="160" height="160" stroke="chartreuse" />
<rect x="20" y="220" width="160" height="160" stroke="sienna" />
<rect x="220" y="220" width="160" height="160" stroke="olivedrab" />
</svg>

After

Width:  |  Height:  |  Size: 476 B

View File

@ -0,0 +1,21 @@
<svg xmlns="http://www.w3.org/2000/svg">
<style type="text/css"><![CDATA[
@font-face {
font-family: svgwoff;
src: url(resources/svg.woff);
}
text {
font-family: svgwoff;
font-size: 200px;
stroke-width: 10;
stroke-dasharray: 10 10;
stroke-dashoffset: 7;
stroke: black;
}
]]></style>
<text x="0" y="200">a</text>
<text x="200" y="200">b</text>
<text x="0" y="400">c</text>
<text x="200" y="400">d</text>
</svg>

After

Width:  |  Height:  |  Size: 486 B