mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 06:38:36 +00:00
Bug 719286 - Tests for -moz-objectValue keyword in SVG glyphs r=roc
This commit is contained in:
parent
084d09b993
commit
849dff4f0c
@ -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
|
||||
|
@ -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 |
Binary file not shown.
13
layout/reftests/text-svgglyphs/svg-glyph-objectvalue-ref.svg
Normal file
13
layout/reftests/text-svgglyphs/svg-glyph-objectvalue-ref.svg
Normal 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 |
21
layout/reftests/text-svgglyphs/svg-glyph-objectvalue.svg
Normal file
21
layout/reftests/text-svgglyphs/svg-glyph-objectvalue.svg
Normal 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 |
Loading…
x
Reference in New Issue
Block a user