Files
firefox/testing/web-platform/tests/css/css-paint-api/overdraw.https.html
T
Robert Ma efbcdc4750 Bug 1567965 [wpt PR 17973] - Revert "[fetch] Improve assertion", a=testonly
Automatic update from web-platform-tests
Revert "[fetch] Improve assertion (#17946)"

This reverts commit f4903ae6f4e222097ad30ba6043ee3e46ea5d687.

--

wpt-commits: 1b1ca59288b9026a27b24204ae84cad1cd8c0252
wpt-pr: 17973
2019-07-31 02:53:49 +00:00

32 lines
803 B
HTML

<!DOCTYPE html>
<html class=reftest-wait>
<link rel="help" href="https://drafts.css-houdini.org/css-paint-api/">
<link rel="match" href="overdraw-ref.html">
<style>
#output {
width: 100px;
height: 100px;
background-image: paint(green);
background-color: red;
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/worklet-reftest.js"></script>
<body>
<div id="output"></div>
<script id="code" type="text/worklet">
registerPaint('green', class {
paint(ctx, geom) {
ctx.fillStyle = 'green';
ctx.fillRect(-10, -10, geom.width + 20, geom.height + 20);
}
});
</script>
<script>
importWorkletAndTerminateTestAfterAsyncPaint(CSS.paintWorklet, document.getElementById('code').textContent);
</script>
</body>
</html>