blob: 2ef5fac4749bca9fda42e29adb3601f2e17e5a56 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<style>
canvas {
background-color: gray;
border: 10px solid red;
border-radius: 200px 100px 0px 0px;
}
</style>
</head>
<body>
<h3>It passes if:</h3>
<ul>
<li>the canvas content has rounded corners (top-left and top-right)</li>
<li>the 10px red border is visible around the canvas content</li>
<li>gray border is not visible</li>
</ul>
<canvas id="theCanvas" width="257" height="257"></canvas>
<script>
if (window.internals) {
internals.runtimeFlags.accelerated2dCanvasEnabled = true;
}
var context = theCanvas.getContext('2d');
context.fillStyle = 'green';
context.fillRect(0, 0, theCanvas.width, theCanvas.width);
</script>
</body>
</html>