mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 875629 - test for supplementary-plane character support in SVG-in-OpenType. r=roc
This commit is contained in:
parent
f2be763bd2
commit
58ae63e6b4
18
layout/reftests/text-svgglyphs/cat_face-bmp.html
Normal file
18
layout/reftests/text-svgglyphs/cat_face-bmp.html
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<style type="text/css">
|
||||||
|
/* font with the SVG glyph for the cat face U+1f431 remapped to
|
||||||
|
the BMP smiling-face character U+263a */
|
||||||
|
@font-face { font-family: foo; src: url("resources/cat_face-bmp.ttf"); }
|
||||||
|
body { font-family: foo, sans-serif; font-size: 24px; }
|
||||||
|
td { padding: 2px 10px }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table>
|
||||||
|
<tr><td>☺</td><td>ネコ</td><td>cat face</td></tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
16
layout/reftests/text-svgglyphs/cat_face-notref.html
Normal file
16
layout/reftests/text-svgglyphs/cat_face-notref.html
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<style type="text/css">
|
||||||
|
/* no SVG cat-face glyph, so this should NOT match the testcases */
|
||||||
|
body { font-family: sans-serif; font-size: 24px; }
|
||||||
|
td { padding: 2px 10px }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table>
|
||||||
|
<tr><td>☺</td><td>ネコ</td><td>cat face</td></tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
17
layout/reftests/text-svgglyphs/cat_face.html
Normal file
17
layout/reftests/text-svgglyphs/cat_face.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<style type="text/css">
|
||||||
|
/* font with an SVG glyph for the cat face U+1f431 */
|
||||||
|
@font-face { font-family: foo; src: url("resources/cat_face.ttf"); }
|
||||||
|
body { font-family: foo, sans-serif; font-size: 24px; }
|
||||||
|
td { padding: 2px 10px }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table>
|
||||||
|
<tr><td>🐱</td><td>ネコ</td><td>cat face</td></tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -17,3 +17,7 @@ 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-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-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) fails == svg-glyph-mask.svg svg-glyph-mask-ref.svg # bug 872483
|
||||||
|
|
||||||
|
# test for a non-BMP character in the glyphchar attribute (bug 875629)
|
||||||
|
pref(gfx.font_rendering.opentype_svg.enabled,true) != cat_face-bmp.html cat_face-notref.html
|
||||||
|
pref(gfx.font_rendering.opentype_svg.enabled,true) == cat_face.html cat_face-bmp.html
|
||||||
|
BIN
layout/reftests/text-svgglyphs/resources/cat_face-bmp.ttf
Normal file
BIN
layout/reftests/text-svgglyphs/resources/cat_face-bmp.ttf
Normal file
Binary file not shown.
BIN
layout/reftests/text-svgglyphs/resources/cat_face.ttf
Normal file
BIN
layout/reftests/text-svgglyphs/resources/cat_face.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user