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

Unified Diff: LayoutTests/fast/gradients/unprefixed-linear-gradients-color-hints.html

Issue 631753002: Adding support for color interpolation hints to CSS gradients. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: offset1->offsetLeft Created 6 years, 2 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: LayoutTests/fast/gradients/unprefixed-linear-gradients-color-hints.html
diff --git a/LayoutTests/fast/gradients/unprefixed-linear-gradients-color-hints.html b/LayoutTests/fast/gradients/unprefixed-linear-gradients-color-hints.html
new file mode 100644
index 0000000000000000000000000000000000000000..e4a84347e76d189cb3cfe267909260a6555fd92e
--- /dev/null
+++ b/LayoutTests/fast/gradients/unprefixed-linear-gradients-color-hints.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<style>
+ .box {
+ display: inline-block;
+ height: 100px;
+ width: 200px;
+ border: 1px solid black;
+ }
+
+ .linear1 {
+ background-image: linear-gradient(to right, red -80%, -50%, green, blue, green, 150%, blue 170%);
+ }
+
+ .linear2 {
+ background-image: linear-gradient(to right, red, 10%, green 100px, 60%, blue);
+ }
+
+ .linear3 {
+ background-image: linear-gradient(to right, red, 10%, green, 60%, blue);
+ }
+
+ .linear4 {
+ background-image: linear-gradient(to right, red 4em, 6em, green 10em, 11em, blue);
+ }
+
+ .linear5 {
+ background-image: linear-gradient(to right, red 10px, 10%, green 50px, 60%, blue 100px);
+ }
+
+ .linear6 {
+ background-image: linear-gradient(to right, red 5%, 100px, green 50%, 160px, blue 90%);
+ }
+
+ .linear7 {
+ background-image: linear-gradient(to right, red, 10%, transparent, 90%, blue);
+ }
+
+ .linear8 {
+ background-image: linear-gradient(to right, transparent, 10%, red, 90%, transparent);
+ }
+
+</style>
+<script type="text/javascript" charset="utf-8">
+ if (window.testRunner) {
+ testRunner.dumpAsTextWithPixelResults();
+ }
+</script>
+
+<div class="linear1 box"></div>
+<div class="linear2 box"></div>
+<div class="linear3 box"></div>
+<div class="linear4 box"></div>
+<div class="linear5 box"></div>
+<div class="linear6 box"></div>
+<div class="linear7 box"></div>
+<div class="linear8 box"></div>

Powered by Google App Engine
This is Rietveld 408576698