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

Unified Diff: LayoutTests/fast/gradients/unprefixed-color-hints-edge-cases.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-color-hints-edge-cases.html
diff --git a/LayoutTests/fast/gradients/unprefixed-color-hints-edge-cases.html b/LayoutTests/fast/gradients/unprefixed-color-hints-edge-cases.html
new file mode 100644
index 0000000000000000000000000000000000000000..ca0c5c7411d1dcd20cd1a351e52c46bf7e97b056
--- /dev/null
+++ b/LayoutTests/fast/gradients/unprefixed-color-hints-edge-cases.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<style>
+ .box {
+ display: inline-block;
+ height: 100px;
+ width: 200px;
+ border: 1px solid black;
+ }
+
+ .linear1 {
+ background-image: linear-gradient(to right, red -80%, -80%, green);
+ }
+
+ .linear2 {
+ background-image: linear-gradient(to right, red, 0%, green);
+ }
+
+ .linear3 {
+ background-image: linear-gradient(to right, green, 100%, red);
+ }
+
+ .linear4 {
+ background-image: linear-gradient(to right, green, 50%, blue);
+ }
+
+ .linear5 {
+ background-image: linear-gradient(to right, red, 25%, green, 75%, blue);
+ }
+
+ .linear6 {
+ background-image: linear-gradient(to right, green, 50%, red, 50%, blue);
+ }
+
+ .radial1 {
+ background-image: radial-gradient(ellipse, red -80%, -80%, green);
+ }
+
+ .radial2 {
+ background-image: radial-gradient(ellipse, red, 0%, green);
+ }
+
+ .radial3 {
+ background-image: radial-gradient(ellipse, green, 100%, red);
+ }
+
+ .radial4 {
+ background-image: radial-gradient(ellipse, green, 50%, blue);
+ }
+
+ .radial5 {
+ background-image: radial-gradient(ellipse, red, 25%, green, 75%, blue);
+ }
+
+ .radial6 {
+ background-image: radial-gradient(ellipse, green, 50%, red, 50%, blue);
+ }
+</style>
+
+<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="radial1 box"></div>
+<div class="radial2 box"></div>
+<div class="radial3 box"></div>
+<div class="radial4 box"></div>
+<div class="radial5 box"></div>
+<div class="radial6 box"></div>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/gradients/unprefixed-color-hints-edge-cases-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698