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

Unified Diff: third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html

Issue 2718273002: Resolve background image's url if absolute url is empty (Closed)
Patch Set: Resolve background image url before use Created 3 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 | third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html
diff --git a/third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html b/third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..fadf494c3c627127c2ac49d796b8b8f669c9353a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<iframe id="iframe"></iframe>
+<script>
+ var iframe = document.getElementById('iframe');
+ iframe.contentDocument.body.innerHTML = `
+ <style>
+ .bg-img {
+ background: url('./resources/green-24x24.png') no-repeat;
+ width: 24px;
+ height:24px;
+ }
+ </style>
+ <div class='bg-img'></div>`;
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698