Skip to content

Commit 4b4d41e

Browse files
authored
Merge pull request #185 from NSGolova/devel
Fix "transform: rotateZ" becoming "transform: rotateY"
2 parents 5617e86 + 8889e06 commit 4b4d41e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/AngleSharp.Css.Tests/Declarations/CssTransformProperty.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ public void CssTransformRotateXLegal()
560560
Assert.IsFalse(property.IsImportant);
561561
Assert.IsFalse(property.IsInherited);
562562
Assert.IsTrue(property.HasValue);
563+
Assert.AreEqual(property.Value, "rotateX(10deg)");
563564
}
564565

565566
[Test]
@@ -571,6 +572,7 @@ public void CssTransformRotateYLegal()
571572
Assert.IsFalse(property.IsImportant);
572573
Assert.IsFalse(property.IsInherited);
573574
Assert.IsTrue(property.HasValue);
575+
Assert.AreEqual(property.Value, "rotateY(10deg)");
574576
}
575577

576578
[Test]
@@ -582,6 +584,7 @@ public void CssTransformRotateZLegal()
582584
Assert.IsFalse(property.IsImportant);
583585
Assert.IsFalse(property.IsInherited);
584586
Assert.IsTrue(property.HasValue);
587+
Assert.AreEqual(property.Value, "rotateZ(10deg)");
585588
}
586589

587590
[Test]

src/AngleSharp.Css/Values/Functions/CssRotateValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public String Name
6262
}
6363
else if (_x is null && _y is null && _z is not null)
6464
{
65-
return FunctionNames.RotateY;
65+
return FunctionNames.RotateZ;
6666
}
6767

6868
return FunctionNames.Rotate3d;

0 commit comments

Comments
 (0)