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

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

Issue 2718273002: Resolve background image's url if absolute url is empty (Closed)
Patch Set: 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
Index: third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe-expected.html b/third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..7c949cd834907c49a0688963fe964ca89513bf6e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/backgrounds/background-image-relative-url-in-iframe-expected.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <script>
+ function makeIframe() {
+ var iframe = document.getElementById('iframe');
+ iframe.contentDocument.body.innerHTML = `
+ <style>
+ .bg-img {
+ background: #00FF01;
+ width: 24px;
+ height:24px;
+ }
+ </style>
+ <div class='bg-img'></div>`;
+ }
+ </script>
+ </head>
+ <body onload="makeIframe()">
+ <iframe id="iframe"></iframe>
+ </body>
rune 2017/02/28 09:29:05 If you set the background on the iframe body in th
+</html>

Powered by Google App Engine
This is Rietveld 408576698