Browse Source

Test parsing of `rgba` colors in linear gradient

Michael Ragazzon 1 year ago
parent
commit
b967aba5dc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Tests/Source/UnitTests/PropertySpecification.cpp

+ 4 - 0
Tests/Source/UnitTests/PropertySpecification.cpp

@@ -149,8 +149,12 @@ TEST_CASE("PropertySpecification.ParsePropertyValues")
 
 	Parse("linear-gradient(110deg, #fff, #000 10%) border-box, image(invader.png)",
 		{"linear-gradient(110deg, #fff, #000 10%)", "border-box,", "image(invader.png)"});
+	Parse("linear-gradient(110deg, rgba( 255, 255, 255, 255 ), #000 10%) border-box, image(invader.png)",
+		{"linear-gradient(110deg, rgba( 255, 255, 255, 255 ), #000 10%)", "border-box,", "image(invader.png)"});
 	Parse("linear-gradient(110deg, #fff, #000 10%) border-box, image(invader.png)",
 		{"linear-gradient(110deg, #fff, #000 10%) border-box", "image(invader.png)"}, SplitOption::Comma);
+	Parse("linear-gradient(110deg, rgba( 255, 255, 255, 255 ), #000 10%) border-box, image(invader.png)",
+		{"linear-gradient(110deg, rgba( 255, 255, 255, 255 ), #000 10%) border-box", "image(invader.png)"}, SplitOption::Comma);
 
 	Parse(R"(image( a\) b ))", {R"(image( a\))", "b", ")"});
 	Parse(R"(image( a\) b ))", R"(image( a\) b ))", SplitOption::Comma);