diff --git a/src/AngleSharp.Css.Tests/Declarations/CssTransformProperty.cs b/src/AngleSharp.Css.Tests/Declarations/CssTransformProperty.cs index 48a481d..c86216d 100644 --- a/src/AngleSharp.Css.Tests/Declarations/CssTransformProperty.cs +++ b/src/AngleSharp.Css.Tests/Declarations/CssTransformProperty.cs @@ -560,6 +560,7 @@ public void CssTransformRotateXLegal() Assert.IsFalse(property.IsImportant); Assert.IsFalse(property.IsInherited); Assert.IsTrue(property.HasValue); + Assert.AreEqual(property.Value, "rotateX(10deg)"); } [Test] @@ -571,6 +572,7 @@ public void CssTransformRotateYLegal() Assert.IsFalse(property.IsImportant); Assert.IsFalse(property.IsInherited); Assert.IsTrue(property.HasValue); + Assert.AreEqual(property.Value, "rotateY(10deg)"); } [Test] @@ -582,6 +584,7 @@ public void CssTransformRotateZLegal() Assert.IsFalse(property.IsImportant); Assert.IsFalse(property.IsInherited); Assert.IsTrue(property.HasValue); + Assert.AreEqual(property.Value, "rotateZ(10deg)"); } [Test] diff --git a/src/AngleSharp.Css/Values/Functions/CssRotateValue.cs b/src/AngleSharp.Css/Values/Functions/CssRotateValue.cs index ccebf27..358b1aa 100644 --- a/src/AngleSharp.Css/Values/Functions/CssRotateValue.cs +++ b/src/AngleSharp.Css/Values/Functions/CssRotateValue.cs @@ -62,7 +62,7 @@ public String Name } else if (_x is null && _y is null && _z is not null) { - return FunctionNames.RotateY; + return FunctionNames.RotateZ; } return FunctionNames.Rotate3d;