Mobile Web Test Suites Working Group Blog

Categories: Announcements (11) | Opinions (1) | Testing tools (2) | Web Compatibility Test (7) | Widgets testing (3) |

Updated canvas test — 12 May 2009

We've made another small update to the Web Compatibility Test for Mobile Browsers (WCTMB). The canvas test has been made a bit more difficult, testing alpha transparency too:

function canvas() {
var c = document.getElementById("canvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "rgb(0,128,0)";
ctx.fillRect(0, 0, 20, 20);
ctx.globalAlpha = 0; // any future drawing operations will be invisible
ctx.drawImage(document.getElementById('red.png'), 0, 0); // draw invisible red square over the green square
}
by Wilhelm Joys Andersen in Web Compatibility Test Permalink

Comments, Pingbacks:

No Comments/Pingbacks for this post yet...

Contacts: Dominique Hazael-Massieux