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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html

Issue 2336693002: Rendering text to a canvas in a frame-less document. (Closed)
Patch Set: Addressing comments from patch set 1. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html b/third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..2b414275689c0a458f16204bcd1085225632daa4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/text-rendering-frameless-canvas-expected.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<body>
+
+<canvas id="srcCanvas" width="200" height="100" style="border:1px solid #d3d3d3;"></canvas>
+
+<script>
+var cnv = document.getElementById('srcCanvas');
+var ctx = cnv.getContext('2d');
+ctx.font = "10px sans-serif";
Justin Novosad 2016/09/13 14:45:42 On mac, it looks like the default font is a serif
zakerinasab 2016/09/13 14:54:05 Done.
+ctx.strokeStyle='rgba(140, 0.013953202404081821)';
+ctx.strokeText('Hello World!' ,1, 30);
+ctx.font = "30px Verdana";
+ctx.strokeText('Goodbye!' ,1, 70);
+</script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698