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

Unified Diff: LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html

Issue 237743009: Don't parse colors for <canvas> in quirks mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix style issue. Created 6 years, 8 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
« no previous file with comments | « no previous file | Source/core/html/canvas/CanvasStyle.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html
diff --git a/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html b/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html
new file mode 100644
index 0000000000000000000000000000000000000000..9e28750b5a158c4f08b5f91b2d7ae0ed8be9f8d9
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-fillStyle-no-quirks-parsing.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+setup(function() {
+ window.ctx = document.createElement('canvas').getContext('2d');
+});
+
+test(function() {
+ ctx.fillStyle = "#008000";
+ ctx.fillStyle = "800000";
+ assert_equals(ctx.fillStyle, "#008000");
+}, 'fillStyle should not accept quirks mode hex colors.');
+</script>
« no previous file with comments | « no previous file | Source/core/html/canvas/CanvasStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698