Browse Source

Update linear gradient visual test with multiple locations per color stop

Michael Ragazzon 1 year ago
parent
commit
926a07fe42
1 changed files with 9 additions and 0 deletions
  1. 9 0
      Tests/Data/VisualTests/shader_linear_gradient.rml

+ 9 - 0
Tests/Data/VisualTests/shader_linear_gradient.rml

@@ -51,6 +51,9 @@
 		.repeating > :nth-child(2) { decorator: repeating-linear-gradient(red, blue 20px, red 40px); }
 
 		.premultiplied_alpha > :nth-child(1) { decorator: linear-gradient(90deg, red, transparent, blue); background: #fff; }
+		.premultiplied_alpha > :nth-child(2) { decorator: linear-gradient(90deg, red, white, blue); }
+
+		.multiple_locations_per_color > :nth-child(1) { decorator: linear-gradient(to right, red, white 40% 60%, blue); }
 	</style>
 </head>
 
@@ -97,6 +100,12 @@ Repeating linear gradients
 Red (left), white, blue (right). Should not show any grayish transition colors if the backend correctly interpolates in premultiplied alpha space.
 <group class="premultiplied_alpha">
 	<div/>
+	<div/>
+</group>
+
+Multiple locations per color
+<group class="multiple_locations_per_color">
+	<div/>
 </group>
 </body>
 </rml>