| Index: LayoutTests/fast/dom/HTMLImageElement/image-sizes-viewport-with-new-image-and-template-parent.html
|
| diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-sizes-viewport-with-new-image-and-template-parent.html b/LayoutTests/fast/dom/HTMLImageElement/image-sizes-viewport-with-new-image-and-template-parent.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..44826860502525e665bcdb54b4c4713ef488e467
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/HTMLImageElement/image-sizes-viewport-with-new-image-and-template-parent.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<script>
|
| + if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| + function insert() {
|
| + var img = new Image();
|
| + var template = document.getElementById('template');
|
| +
|
| + img.src = 'resources/blue_rect.jpg';
|
| + img.sizes = '50vw';
|
| +
|
| + template.appendChild(img);
|
| + }
|
| +</script>
|
| +<body onload="insert()">
|
| + <pre id="result">PASS - didn't crash.</pre>
|
| + <template id ="template"></template>
|
| +</body>
|
|
|