Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pauloortins opened this issue Oct 3, 2023 · 0 comments

Comments

@pauloortins
Copy link

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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant