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

Side by Side Diff: third_party/WebKit/LayoutTests/canvas/philip/tests/2d.fillStyle.parse.invalid.hex8.html

Issue 1936913002: [CSS] Accept 8 (#RRGGBBAA) and 4 (#RGBA) value hex colors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add quirks mode fastParseColorInternal() test cases. Created 4 years, 7 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Canvas test: 2d.fillStyle.parse.invalid.hex8</title>
3 <script src="../tests.js"></script>
4 <link rel="stylesheet" href="../tests.css">
5 <body>
6 <p id="passtext">Pass</p>
7 <p id="failtext">Fail</p>
8 <p class="output">These images should be identical:</p>
9 <canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL ( fallback content)</p></canvas>
10 <p class="output expectedtext">Expected output:<p><img src="green-100x50.png" cl ass="output expected" id="expected" alt="">
11 <ul id="d"></ul>
12 <script>
13 _addTest(function(canvas, ctx) {
14
15
16 ctx.fillStyle = '#0f0';
17 try { ctx.fillStyle = '#ff0000ff'; } catch (e) { } // this shouldn't throw, but it shouldn't matter here if it does
18 ctx.fillRect(0, 0, 100, 50);
19 _assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255");
20
21
22 });
23 </script>
24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698