Index: LayoutTests/fast/canvas/font-no-zoom.html |
diff --git a/LayoutTests/fast/canvas/font-no-zoom.html b/LayoutTests/fast/canvas/font-no-zoom.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..be8537208e6fccbd3829c25d66301860df8e1394 |
--- /dev/null |
+++ b/LayoutTests/fast/canvas/font-no-zoom.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<style> |
+canvas { |
+ font-family: sans-serif; |
+ font-size: 100px; |
+ zoom: 3; |
+} |
+</style> |
+<canvas width="100" height="100"></canvas> |
+<script> |
+test(function() { |
+ var ctx = document.querySelector('canvas').getContext('2d'); |
+ // Set same font as will be computed on the canvas element. |
+ ctx.font = "100px sans-serif"; |
+ assert_equals(ctx.font, "100px sans-serif"); |
+}, "Zoom does not affect the font size."); |
+</script> |