diff options
Diffstat (limited to 'testing/web-platform/tests/html/canvas/element/manual/filters/canvas-filter-opacity-alpha-and-fillStyle-expected.html')
-rw-r--r-- | testing/web-platform/tests/html/canvas/element/manual/filters/canvas-filter-opacity-alpha-and-fillStyle-expected.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/canvas/element/manual/filters/canvas-filter-opacity-alpha-and-fillStyle-expected.html b/testing/web-platform/tests/html/canvas/element/manual/filters/canvas-filter-opacity-alpha-and-fillStyle-expected.html new file mode 100644 index 0000000000..f87794f0b7 --- /dev/null +++ b/testing/web-platform/tests/html/canvas/element/manual/filters/canvas-filter-opacity-alpha-and-fillStyle-expected.html @@ -0,0 +1,41 @@ +<!DOCTYPE html> +<body> + <div id="sq-1"></div> + <div id="sq-2"></div> + <div id="sq-3"></div> + <div id="sq-4"></div> +</body> +<style> + /*The expected behavior when setting the opacity through different methods + is that the opacity of the resulting drawn element is the product of the opacity + value set by each of the methods.*/ + div{ + width: 50px; + height: 50px; + position: absolute; + } + #sq-1{ + background-color: black; + left: 18px; + top: 18px; + opacity: 0.125; + } + #sq-2{ + background-color: black; + left: 78px; + top: 18px; + opacity: 0.03125; + } + #sq-3{ + background-color: black; + left: 18px; + top: 78px; + opacity: 0.1875; + } + #sq-4{ + background-color: black; + left: 78px; + top: 78px; + opacity: 0.016; + } +</style> |