aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html')
-rw-r--r--tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html b/tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html
index 7f1e31bf39b..c8fdc852579 100644
--- a/tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html
+++ b/tests/wpt/web-platform-tests/css/css-paint-api/background-image-alpha.https.html
@@ -33,18 +33,16 @@
registerPaint('opaque', class {
static get contextOptions() { return {alpha: false}; }
paint(ctx, geom) {
- ctx.strokeStyle = 'blue';
- ctx.lineWidth = 4;
- ctx.strokeRect(20, 20, 60, 60);
+ ctx.fillStyle = 'blue';
+ ctx.fillRect(20, 20, 60, 60);
}
});
registerPaint('nonOpaque', class {
static get contextOptions() { return {alpha: true}; }
paint(ctx, geom) {
- ctx.strokeStyle = 'blue';
- ctx.lineWidth = 4;
- ctx.strokeRect(20, 20, 60, 60);
+ ctx.fillStyle = 'blue';
+ ctx.fillRect(20, 20, 60, 60);
}
});
</script>