| Index: LayoutTests/fast/css/marquee-in-template.html
|
| diff --git a/LayoutTests/fast/css/MarqueeLayoutTest.html b/LayoutTests/fast/css/marquee-in-template.html
|
| similarity index 86%
|
| copy from LayoutTests/fast/css/MarqueeLayoutTest.html
|
| copy to LayoutTests/fast/css/marquee-in-template.html
|
| index f2be02b4bccda4abc8238f1032dbefc5c6a05c60..0a82c893416d6a6604deb91dba7f35a81d65f389 100644
|
| --- a/LayoutTests/fast/css/MarqueeLayoutTest.html
|
| +++ b/LayoutTests/fast/css/marquee-in-template.html
|
| @@ -1,4 +1,5 @@
|
| <!DOCTYPE html>
|
| +<template>
|
| <p>Test passes if all silver blocks are the same size as the green blocks next to them.
|
| <div id='horiz'>
|
| <div class='pre'></div>
|
| @@ -23,6 +24,7 @@
|
| </marquee>
|
| <div class='post'></div>
|
| </div>
|
| +</template>
|
| <style>
|
| .pre {
|
| background: green;
|
| @@ -69,9 +71,14 @@ marquee {
|
| height: 100px;
|
| }
|
| </style>
|
| -
|
| +<div id="container"></div>
|
| <script src="../../resources/js-test.js"></script>
|
| <script>
|
| +// Add the content in the template tag to the document.
|
| +var content = document.querySelector('template').content;
|
| +document.querySelector('#container').appendChild(document.importNode(content, true));
|
| +
|
| +description("Test the layout of the marquee element when it is instantiated in a template tag.");
|
| description("The height of a horizontal marquee is computed as normal for inline-blocks. The 'auto' height of a vertical marquee defaults to 200px.");
|
| var horiz = document.querySelector('#horiz marquee');
|
| var vertAuto = document.querySelector('#vertAuto marquee');
|
|
|