Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
<style>
.red {
position: absolute;
z-index: -1;
width: 100px;
height: 100px;
background: red;
}
canvas {
display: block;
width: max-content;
height: 0px;
min-height: max-content;
aspect-ratio: 1;
background: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="red"></div>
<canvas width="100" height="50"></canvas>