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
8 lines
363 B
HTML
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>
|