mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 698652: Test that minimum font size is ignored in canvas. r=dbaron
This commit is contained in:
parent
9d1717a44d
commit
9eed9ad660
@ -45,6 +45,8 @@ fails-if(Android) != text-font-lang.html text-font-lang-notref.html
|
||||
|
||||
== text-measure.html text-measure-ref.html
|
||||
|
||||
pref(font.minimum-size.x-western,48) != text-ignore-min-size.html text-ignore-min-size-ref.html
|
||||
|
||||
== strokeText-path.html strokeText-path-ref.html
|
||||
|
||||
# azure quartz uses CGDrawLinearGradient instead of DrawShading
|
||||
|
15
layout/reftests/canvas/text-ignore-min-size-ref.html
Normal file
15
layout/reftests/canvas/text-ignore-min-size-ref.html
Normal file
@ -0,0 +1,15 @@
|
||||
<html lang="en">
|
||||
<script>
|
||||
function load() {
|
||||
var ctx = document.getElementById("canvas").getContext("2d");
|
||||
|
||||
ctx.font = "bold 48px sans-serif";
|
||||
ctx.scale(4, 4);
|
||||
var str = "HeHeHeHe";
|
||||
ctx.fillText(str, 0, 48);
|
||||
}
|
||||
</script>
|
||||
<body onload="load();">
|
||||
<canvas id="canvas" width="400" height="200"></canvas>
|
||||
</body>
|
||||
</html>
|
15
layout/reftests/canvas/text-ignore-min-size.html
Normal file
15
layout/reftests/canvas/text-ignore-min-size.html
Normal file
@ -0,0 +1,15 @@
|
||||
<html lang="en">
|
||||
<script>
|
||||
function load() {
|
||||
var ctx = document.getElementById("canvas").getContext("2d");
|
||||
|
||||
ctx.font = "bold 12px sans-serif";
|
||||
ctx.scale(4, 4);
|
||||
var str = "HeHeHeHe";
|
||||
ctx.fillText(str, 0, 48);
|
||||
}
|
||||
</script>
|
||||
<body onload="load();">
|
||||
<canvas id="canvas" width="400" height="200"></canvas>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user