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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/color-space/display_linear-rgb.html

Issue 2496913003: Display linear-srgb color managed canvas (Closed)
Patch Set: Removing Failure lines from TestExpectations Created 4 years, 1 month 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/color-space/display_linear-rgb.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/color-space/display_linear-rgb.html b/third_party/WebKit/LayoutTests/fast/canvas/color-space/display_linear-rgb.html
new file mode 100644
index 0000000000000000000000000000000000000000..6a91d690bc7d08bf4724f39458aef93bd560a4b5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/color-space/display_linear-rgb.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<script>
+function main()
+{
+ var ctx = document.getElementById("c").getContext("2d", {colorSpace:'linear-rgb'});
+ ctx.fillStyle = 'red';
+ ctx.fillRect(20,20,50,50);
+ ctx.fillStyle = 'green';
+ ctx.fillRect(70,20,50,50);
+ ctx.fillStyle = 'blue';
+ ctx.fillRect(20,70,50,50);
+ ctx.fillStyle = 'black';
+ ctx.fillRect(70,70,50,50);
+}
+</script>
+</head>
+<body onload="main()">
+<canvas id="c" width="140" height="140" class="nomargin"></canvas>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698