I'm attempting to create a simple 3D square shape.
div {
width: 300px;
height: 300px;
background: #333;
transform: rotateX(50deg);
-webkit-transform: rotateX(50deg);
-moz-transform: rotateX(50deg);
-ms-transform: rotateX(50deg);
perspective: 300px;
-webkit-perspective: 300px;
-moz-perspective: 300px;
-ms-perspective: 300px;
}
When testing on Chrome, the rotation along the X-axis appears to be working as expected, but the perspective is not being applied. The perspective property does not seem to be working. I'm unsure of what the issue might be. Can anyone provide some insight into what I might be doing wrong?