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

Unified Diff: LayoutTests/fast/css/linear-gradient-currentcolor2.html

Issue 767343003: Make currentColor keyword in linear-gradient work (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resolve gradient colors later Created 6 years 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: LayoutTests/fast/css/linear-gradient-currentcolor2.html
diff --git a/LayoutTests/fast/css/linear-gradient-currentcolor2.html b/LayoutTests/fast/css/linear-gradient-currentcolor2.html
new file mode 100644
index 0000000000000000000000000000000000000000..879ec5b9d51239c2ed9f066e7bbfc89236ee8498
--- /dev/null
+++ b/LayoutTests/fast/css/linear-gradient-currentcolor2.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<style>
+html {
+ color: grey;
+}
+.currentColor {
+ background-image: linear-gradient(currentColor, currentColor);
+ height: 20px;
+}
+</style>
+<div style="color: green">
+ <div class="currentColor">The color of the background should be <code>green</code></div>
+</div>
+<div style="color: blue">
+ <div class="currentColor">The color of the background should be <code>blue</code></div>
+</div>
+
+<div style="color: green;">
+ <div style="color: yellow;">
+ <div class="currentColor">The color of the background should be <code>yellow</code></div>
+ </div>
+ <div class="currentColor">The color of the background should be <code>green</code></div>
+</div>
+
+<div class="currentColor" style="color: cyan;">The color of the background should be <code>cyan</code></div>
+<div class="currentColor">The color of the background should be <code>grey</code></div>
« no previous file with comments | « no previous file | LayoutTests/fast/css/linear-gradient-currentcolor2-expected.html » ('j') | Source/core/css/CSSGradientValue.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698