Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(629)

Unified Diff: LayoutTests/fast/css/marquee-in-template.html

Issue 654583003: Use the Document rather than the Frame's execution context to install JS-based marquee elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/css/marquee-in-template-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/css/marquee-in-template-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698