[Pkg-javascript-commits] [less.js] 05/38: Add failing test for svg-gradient in nested mixin

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:27:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v2.2.0
in repository less.js.

commit 0d94e2dd016ef3f14b65302293a41a6bc97f5329
Author: Matthew Smith <mtscout6 at gmail.com>
Date:   Wed Dec 31 10:33:37 2014 -0700

    Add failing test for svg-gradient in nested mixin
    
    Tests which expose the bug in #2360
---
 test/css/nested-mixin-with-svg-gradient.css               |  3 +++
 .../nested-gradient-with-svg-gradient/mixin-consumer.less |  5 +++++
 .../svg-gradient-mixin.less                               | 15 +++++++++++++++
 test/less/nested-mixin-with-svg-gradient.less             |  1 +
 4 files changed, 24 insertions(+)

diff --git a/test/css/nested-mixin-with-svg-gradient.css b/test/css/nested-mixin-with-svg-gradient.css
new file mode 100644
index 0000000..59ab966
--- /dev/null
+++ b/test/css/nested-mixin-with-svg-gradient.css
@@ -0,0 +1,3 @@
+.gray-gradient {
+  background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZGllbnQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzk5OTk5OSIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSI2MCUiIHN0b3AtY29sb3I9IiM5OTk [...]
+}
diff --git a/test/less/nested-gradient-with-svg-gradient/mixin-consumer.less b/test/less/nested-gradient-with-svg-gradient/mixin-consumer.less
new file mode 100644
index 0000000..12bba2e
--- /dev/null
+++ b/test/less/nested-gradient-with-svg-gradient/mixin-consumer.less
@@ -0,0 +1,5 @@
+ at import "svg-gradient-mixin.less";
+
+.gray-gradient {
+  .gradient-mixin(#999);
+}
diff --git a/test/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less b/test/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less
new file mode 100644
index 0000000..fad96ea
--- /dev/null
+++ b/test/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less
@@ -0,0 +1,15 @@
+.gradient-mixin(@color) {
+  background: svg-gradient(to bottom,
+    fade(@color, 0%) 0%,
+    fade(@color, 5%) 60%,
+    fade(@color, 10%) 70%,
+    fade(@color, 15%) 73%,
+    fade(@color, 20%) 75%,
+    fade(@color, 25%) 80%,
+    fade(@color, 30%) 85%,
+    fade(@color, 35%) 88%,
+    fade(@color, 40%) 90%,
+    fade(@color, 45%) 95%,
+    fade(@color, 50%) 100%
+  );
+}
diff --git a/test/less/nested-mixin-with-svg-gradient.less b/test/less/nested-mixin-with-svg-gradient.less
new file mode 100644
index 0000000..41eae43
--- /dev/null
+++ b/test/less/nested-mixin-with-svg-gradient.less
@@ -0,0 +1 @@
+ at import "./nested-gradient-with-svg-gradient/mixin-consumer.less";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list