Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
|
xidachen
2016/10/24 20:30:18
Please use one of the "pixel_offscreenCanvas" test
zakerinasab
2016/10/24 20:53:41
Done.
| |
| 2 <canvas id="cnv" width=100 height=100></canvas> | |
| 3 | |
| 4 <script> | |
| 5 // This layout test checks if the 2D canvas is properly displayed | |
| 6 // when the color space is set to linear-rgb. | |
| 7 var ctx = document.getElementById("cnv").getContext("2d", {colorSpace:'linea r-rgb'}); | |
| 8 ctx.fillStyle = 'blue'; | |
|
xidachen
2016/10/24 20:30:18
Fill the entire canvas could hide bugs sometimes.
zakerinasab
2016/10/24 20:53:41
Done.
| |
| 9 ctx.fillRect(0,0,100,100); | |
| 10 ctx.stroke(); | |
| 11 </script> | |
| 12 | |
| 13 | |
| OLD | NEW |