зеркало из https://github.com/mozilla/gecko-dev.git
bug 1011187 - reftest for font-variant:small-caps in canvas. r=roc
This commit is contained in:
Родитель
ce3905bb87
Коммит
1ef17db57b
|
@ -48,6 +48,7 @@ fuzzy-if(azureSkiaGL,10,400) == text-not-in-doc-test.html text-not-in-doc-ref.ht
|
||||||
skip-if(B2G) != text-font-lang.html text-font-lang-notref.html
|
skip-if(B2G) != text-font-lang.html text-font-lang-notref.html
|
||||||
|
|
||||||
== text-measure.html text-measure-ref.html
|
== text-measure.html text-measure-ref.html
|
||||||
|
== text-small-caps-1.html text-small-caps-1-ref.html
|
||||||
|
|
||||||
random-if(!d2d) != text-subpixel-1.html text-subpixel-1-ref.html
|
random-if(!d2d) != text-subpixel-1.html text-subpixel-1-ref.html
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<style>
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<canvas id="canvas1" width="400" height="400"></canvas>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var ctx = document.getElementById('canvas1').getContext('2d');
|
||||||
|
ctx.font = "40px arial, helvetica, roboto, droid sans, sans-serif";
|
||||||
|
ctx.fillText("lowercase", 50, 50);
|
||||||
|
ctx.font = "32px arial, helvetica, roboto, droid sans, sans-serif";
|
||||||
|
ctx.fillText("SMALLCAPS", 50, 100);
|
||||||
|
ctx.font = "40px arial, helvetica, roboto, droid sans, sans-serif";
|
||||||
|
ctx.fillText("CAPITALS", 50, 150);
|
||||||
|
</script>
|
||||||
|
</body>
|
|
@ -0,0 +1,19 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<style>
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<canvas id="canvas1" width="400" height="400"></canvas>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var ctx = document.getElementById('canvas1').getContext('2d');
|
||||||
|
ctx.font = "40px arial, helvetica, roboto, droid sans, sans-serif";
|
||||||
|
ctx.fillText("lowercase", 50, 50);
|
||||||
|
ctx.font = "small-caps 40px arial, helvetica, roboto, droid sans, sans-serif";
|
||||||
|
ctx.fillText("smallcaps", 50, 100);
|
||||||
|
ctx.font = "small-caps 40px arial, helvetica, roboto, droid sans, sans-serif";
|
||||||
|
ctx.fillText("CAPITALS", 50, 150);
|
||||||
|
</script>
|
||||||
|
</body>
|
Загрузка…
Ссылка в новой задаче