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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-backgroundImage.html

Issue 2474093003: Don't use url from ImageResource for computed style. (Closed)
Patch Set: Created 4 years, 1 month 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/css/getComputedStyle/getComputedStyle-backgroundImage-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-backgroundImage.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-backgroundImage.html b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-backgroundImage.html
new file mode 100644
index 0000000000000000000000000000000000000000..d434d4c0d1b950df0be004fa93c44666c2f201dd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-backgroundImage.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<style>
+ #testDiv::before {
+ background-image: url(http://dummy/bg.svg#frag1);
+ }
+ #testDiv::after {
+ background-image: url(http://dummy/bg.svg#frag2);
+ }
+</style>
+<div id="testDiv"></div>
+<script>
+test(() => {
+ assert_equals(getComputedStyle(testDiv, "::before").backgroundImage, 'url("http://dummy/bg.svg#frag1")', "Computed backgroundImage of #testDiv::before.");
+ assert_equals(getComputedStyle(testDiv, "::after").backgroundImage, 'url("http://dummy/bg.svg#frag2")', "Computed backgroundImage of #testDiv::after.");
+}, "Computed background-image of generated content contains correct fragment identifier.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-backgroundImage-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698