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

Unified Diff: third_party/WebKit/LayoutTests/fast/gradients/repeating-conic-gradient.html

Issue 2792163002: Add support for repeating-conic-gradient() (Closed)
Patch Set: baselines Created 3 years, 8 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: third_party/WebKit/LayoutTests/fast/gradients/repeating-conic-gradient.html
diff --git a/third_party/WebKit/LayoutTests/fast/gradients/repeating-conic-gradient.html b/third_party/WebKit/LayoutTests/fast/gradients/repeating-conic-gradient.html
new file mode 100644
index 0000000000000000000000000000000000000000..165e57b03b73acba4d453ca42cfeb411d1c5e8fe
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/gradients/repeating-conic-gradient.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+
+<style>
+div {
+ width: 200px;
+ height: 200px;
+ border: 1px solid grey;
+ border-radius: 50%;
+ display: inline-block;
+ margin: 20px;
+}
+
+/* basic */
+.conic1 {
+ background: #0ac repeating-conic-gradient(hsla(0,0%,100%,.2) 0, hsla(0,0%,100%,.2) 15deg, hsla(0,0%,100%,0) 15deg, hsla(0,0%,100%,0) 30deg);
+}
+
+/* kitchen sink */
+.conic2 {
+ background:
+ radial-gradient(#000 3%, rgba(0,0,0,0.3) 10%, rgba(0,0,0,0) 30%),
+ conic-gradient(red, orange, lime, aqua, blue, magenta, red),
+ radial-gradient(closest-side, #444 0%, #444 1%, #bbb 0%, #bbb 2%, #444 0%, #444 4%, #bbb 0%, #bbb 8%, #444 0%, #444 16%, #bbb 0%, #bbb 32%, #444 0%, #444 64%, #bbb 0%, #bbb 100%),
+ repeating-conic-gradient(#bbb 0, #bbb 6.25%, #444 0, #444 12.5%);
+ background-blend-mode: normal, multiply, exclusion, normal;
+}
+
+/* out-of-range stops */
+.conic3 {
+ background: repeating-conic-gradient(red -100%, #0f0 -30%, blue 130%, red 200%);
+}
+
+/* same-phase, different ranges */
+.conic4 {
+ background: repeating-conic-gradient(red 20deg, green 60deg, blue 100deg, red 140deg);
+}
+
+.conic5 {
+ background: repeating-conic-gradient(red -220deg, green -180deg, blue -140deg, red -100deg);
+}
+
+.conic6 {
+ background: repeating-conic-gradient(red 380deg, green 420deg, blue 460deg, red 500deg);
+}
+
+</style>
+
+<div class="conic1"></div>
+<div class="conic2"></div>
+<div class="conic3"></div>
+<br>
+<div class="conic4"></div>
+<div class="conic5"></div>
+<div class="conic6"></div>

Powered by Google App Engine
This is Rietveld 408576698