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

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

Issue 2787113002: Initial conic-gradient() implementation (Closed)
Patch Set: baselines Created 3 years, 9 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/conic-gradient-positioning.html
diff --git a/third_party/WebKit/LayoutTests/fast/gradients/conic-gradient-positioning.html b/third_party/WebKit/LayoutTests/fast/gradients/conic-gradient-positioning.html
new file mode 100644
index 0000000000000000000000000000000000000000..0b7bedd743650a8f95c0d18e8179d7fdddc851d3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/gradients/conic-gradient-positioning.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+
+<style>
+div {
+ width: 78px;
+ height: 78px;
+ border: 1px solid grey;
+ display: inline-block;
+ margin: 2px;
+}
+</style>
+
+<body>
+<script>
+ function appendConicGradient(pos) {
+ var div = document.createElement('div');
+
+ div.setAttribute('style', 'background: conic-gradient(' + pos + ', red, yellow, lime, aqua, blue, magenta, red)');
+ document.body.appendChild(div);
+ }
+
+ var pos = [ '25%', 'center', '75%' ];
+ var rot = [ '0', '20deg', '40deg', '60deg', '80deg' ];
+
+ rot.forEach(function(r) {
+ pos.forEach(function(x) {
+ pos.forEach(function(y) {
+ appendConicGradient('from ' + r + ' at ' + x + ' ' + y);
+ });
+ });
+ document.body.appendChild(document.createElement('br'));
+ });
+
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698