Update web-platform-tests to revision ddfc95cf0493ae147a4f6a4d7be8eff1a0c23098

This commit is contained in:
Anthony Ramine 2018-01-18 10:15:04 +01:00
parent 1f6a864ab5
commit 7e6290451f
832 changed files with 16026 additions and 2649 deletions

View file

@ -2,12 +2,12 @@
<html class="reftest-wait">
<link rel="match" href="paint2d-image-ref.html">
<style>
#output {
width: 300px;
height: 300px;
background-image: paint(image);
border-image: url("resources/html5.png");
}
#output {
width: 300px;
height: 300px;
background-image: paint(image);
border-image: url("./resources/html5.png");
}
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/common/css-paint-tests.js"></script>
@ -17,6 +17,8 @@
registerPaint('image', class {
static get inputProperties() { return [ 'border-image-source' ]; };
paint(ctx, geom, styleMap) {
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, geom.width, geom.height);
ctx.drawImage(styleMap.get('border-image-source'), 0, 0);
}
});