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

Side by Side 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, 9 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <iframe id="iframe"></iframe>
3 <script>
4 var iframe = document.getElementById('iframe');
5 iframe.contentDocument.body.innerHTML = `
6 <style>
7 .bg-img {
8 background: url('./resources/green-24x24.png') no-repeat;
9 width: 24px;
10 height:24px;
11 }
12 </style>
13 <div class='bg-img'></div>`;
14 </script>
OLDNEW
« 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