diff --git a/html/canvas/element/filters/2d.filter.drop-shadow-globalAlpha-expected.html b/html/canvas/element/filters/2d.filter.drop-shadow-globalAlpha-expected.html new file mode 100644 index 00000000000000..bec81b2422ae67 --- /dev/null +++ b/html/canvas/element/filters/2d.filter.drop-shadow-globalAlpha-expected.html @@ -0,0 +1,18 @@ + + + +Canvas test: 2d.filter.drop-shadow-globalAlpha +

2d.filter.drop-shadow-globalAlpha

+

Tests the context drop-shadow filter with a globalAlpha

+ +

FAIL (fallback content)

+
+ diff --git a/html/canvas/element/filters/2d.filter.drop-shadow-globalAlpha.html b/html/canvas/element/filters/2d.filter.drop-shadow-globalAlpha.html new file mode 100644 index 00000000000000..2a44537508647c --- /dev/null +++ b/html/canvas/element/filters/2d.filter.drop-shadow-globalAlpha.html @@ -0,0 +1,19 @@ + + + + +Canvas test: 2d.filter.drop-shadow-globalAlpha +

2d.filter.drop-shadow-globalAlpha

+

Tests the context drop-shadow filter with a globalAlpha

+ +

FAIL (fallback content)

+
+ diff --git a/html/canvas/offscreen/filters/2d.filter.drop-shadow-globalAlpha-expected.html b/html/canvas/offscreen/filters/2d.filter.drop-shadow-globalAlpha-expected.html new file mode 100644 index 00000000000000..bec81b2422ae67 --- /dev/null +++ b/html/canvas/offscreen/filters/2d.filter.drop-shadow-globalAlpha-expected.html @@ -0,0 +1,18 @@ + + + +Canvas test: 2d.filter.drop-shadow-globalAlpha +

2d.filter.drop-shadow-globalAlpha

+

Tests the context drop-shadow filter with a globalAlpha

+ +

FAIL (fallback content)

+
+ diff --git a/html/canvas/offscreen/filters/2d.filter.drop-shadow-globalAlpha.html b/html/canvas/offscreen/filters/2d.filter.drop-shadow-globalAlpha.html new file mode 100644 index 00000000000000..093b44c3d37aad --- /dev/null +++ b/html/canvas/offscreen/filters/2d.filter.drop-shadow-globalAlpha.html @@ -0,0 +1,22 @@ + + + + +Canvas test: 2d.filter.drop-shadow-globalAlpha +

2d.filter.drop-shadow-globalAlpha

+

Tests the context drop-shadow filter with a globalAlpha

+ +

FAIL (fallback content)

+
+ diff --git a/html/canvas/offscreen/filters/2d.filter.drop-shadow-globalAlpha.w.html b/html/canvas/offscreen/filters/2d.filter.drop-shadow-globalAlpha.w.html new file mode 100644 index 00000000000000..dfec0e19fbaf90 --- /dev/null +++ b/html/canvas/offscreen/filters/2d.filter.drop-shadow-globalAlpha.w.html @@ -0,0 +1,36 @@ + + + + + +Canvas test: 2d.filter.drop-shadow-globalAlpha +

2d.filter.drop-shadow-globalAlpha

+

Tests the context drop-shadow filter with a globalAlpha

+ +

FAIL (fallback content)

+
+ + + diff --git a/html/canvas/tools/yaml-new/filters.yaml b/html/canvas/tools/yaml-new/filters.yaml index be28001fa73007..68c9dab7afd4d2 100644 --- a/html/canvas/tools/yaml-new/filters.yaml +++ b/html/canvas/tools/yaml-new/filters.yaml @@ -32,6 +32,19 @@ ctx.filter = 'blur( 5px)'; assert_equals(ctx.filter, 'blur( 5px)'); +- name: 2d.filter.drop-shadow-globalAlpha + desc: Tests the context drop-shadow filter with a globalAlpha + code: | + ctx.filter = 'drop-shadow(10px 5px 0px rgb(255, 165, 0))'; + ctx.globalAlpha = 0.5 + ctx.fillStyle = 'rgb(128, 0, 128)'; + ctx.fillRect(10, 10, 60, 30); + reference: | + ctx.fillStyle = 'rgba(255, 165, 0, 0.5)'; + ctx.fillRect(20, 15, 60, 30); + ctx.fillStyle = 'rgba(128, 0, 128, 0.5)' + ctx.fillRect(10, 10, 60, 30); + - name: 2d.filter.canvasFilterObject.tentative desc: Test CanvasFilter() object canvas_types: ['HtmlCanvas']