2
0
Эх сурвалжийг харах

Update linear gradient visual test with multiple locations per color stop

Michael Ragazzon 1 жил өмнө
parent
commit
926a07fe42

+ 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); }
 		.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(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>
 	</style>
 </head>
 </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.
 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">
 <group class="premultiplied_alpha">
 	<div/>
 	<div/>
+	<div/>
+</group>
+
+Multiple locations per color
+<group class="multiple_locations_per_color">
+	<div/>
 </group>
 </group>
 </body>
 </body>
 </rml>
 </rml>