ExCSS icon indicating copy to clipboard operation
ExCSS copied to clipboard

animation-name is being converted to lower case which affects the resulting css

Open pauloortins opened this issue 2 years ago • 0 comments

The test below should pass due the fact that animation-name: MyAnimation and animation-name: myanimation are handled different if we have a keyframe like:

@-webkit-keyframes MyAnimation{0%{transform:translateY(50px);opacity:0}100%{transform:translateY(0px);opacity:1}}
[Fact]
public void AnimationNameShouldKeepLetterCasing()
{
   var snippet = "animation-name : MyAnimation";
   var property = ParseDeclaration(snippet);
   Assert.Equal("animation-name", property.Name);
   Assert.False(property.IsImportant);
   Assert.IsType<AnimationNameProperty>(property);
   var concrete = (AnimationNameProperty)property;
   Assert.False(concrete.IsInherited);
   Assert.True(concrete.HasValue);
   Assert.Equal("MyAnimation", concrete.Value);
}

pauloortins avatar Oct 03 '23 16:10 pauloortins