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

Unified Diff: LayoutTests/fast/css/resolve-inline-style-url-on-adopt.html

Issue 164803002: Handle CSSImageValue URLs in inline styles in templates correctly (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed template usage Created 6 years, 10 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 | « no previous file | LayoutTests/fast/css/resolve-inline-style-url-on-adopt-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/resolve-inline-style-url-on-adopt.html
diff --git a/LayoutTests/fast/css/resolve-inline-style-url-on-adopt.html b/LayoutTests/fast/css/resolve-inline-style-url-on-adopt.html
new file mode 100644
index 0000000000000000000000000000000000000000..1f8dc173880b9cb6b5fadeb534ca2d4ec2fdb9fb
--- /dev/null
+++ b/LayoutTests/fast/css/resolve-inline-style-url-on-adopt.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<body>
+<p>All four boxes below should be green</p>
+<template><div style="background-image: url(resources/greenbox.png); width: 100px; height: 100px; border: 1px solid black"></div><br></template>
+<script>
+var template = document.querySelector('template');
+document.body.appendChild(template.content.cloneNode(true));
+document.body.appendChild(document.importNode(template.content, true));
+
+// Give templateDiv its own ElementData
+var templateDiv = template.content.firstChild;
+templateDiv.style.width = '99px';
+templateDiv.style.width = '100px';
+
+document.body.appendChild(template.content.cloneNode(true));
+document.body.appendChild(document.importNode(template.content, true));
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/css/resolve-inline-style-url-on-adopt-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698