Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(765)

Side by Side Diff: LayoutTests/fast/canvas/font-no-zoom.html

Issue 326893003: Reset computed size of the <canvas> FontDescription when setting CRC2D.font (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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;
9 }
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>
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698