Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / font-no-zoom.html
blobb422aeb4acf0236b959ca1240278f141e2925ef8
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <style>
5 canvas {
6 font-family: sans-serif;
7 font-size: 100px;
8 zoom: 3;
10 </style>
11 <canvas width="100" height="100"></canvas>
12 <script>
13 test(function() {
14 var ctx = document.querySelector('canvas').getContext('2d');
15 // Set same font as will be computed on the canvas element.
16 ctx.font = "100px sans-serif";
17 assert_equals(ctx.font, "100px sans-serif");
18 }, "Zoom does not affect the font size.");
19 </script>