Files
tubestation/layout/reftests/bugs/1219985-ref-transparent-with-rendering.html
Markus Stange 6686300ea4 Bug 1219985 - The canvas rendering context 2d should be opaque if either the moz-opaque attribute is set or if it has been initialized with alpha:false. r=jrmuizel
If the canvas is cleared by setting the width or height attributes, its
opaqueness should not be affected.

This patch keeps support for moz-opaque, and also keeps the behavior that
changing the moz-opaque attribute clears the canvas, even if this does not
affect the actual opaqueness of the canvas.

MozReview-Commit-ID: LOlsJxiP9kc
2018-05-02 11:23:53 -04:00

8 lines
363 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>Bug 1219985: Reference for a regular (non-opaque) canvas with a green square rendered in it. The red background behind the canvas is visible.</title>
<div style="width: 200px; height: 200px; background: red; display: flex;">
<div style="width: 100px; height: 100px; margin: auto; background: green;"></div>
</div>