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

@ -1,12 +1,15 @@
<!DOCTYPE html>
<canvas id="canvas" width="300" height="300"></canvas>
<script>
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
var img = new Image;
img.src = "resources/html5.png";
img.onload = function() {
ctx.drawImage(img, 0, 0);
};
</script>
<html>
<style>
div {
width: 300px;
height: 300px;
background-image: url("./resources/html5.png");
background-repeat: no-repeat;
background-color: green;
}
</style>
<body>
<div></div>
</body>
</html>

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);
}
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB