Given the following HTML elements and their styles, the bottom left corner of the reflection is clipped, which is undesirable. I tried to adjust the height, overflow, margin, registration, etc., and nothing showed the whole image. What is the problem here in the first place? Can I do anything without changing the HTML structure?
//Elements <div> <img id="someImage" src="some-img.png"/> <section class="reflection"></section> <div> //Styles div { perspecive:600px; transform-style:perserve-3d; } div > img { transform:rotateY(-60deg); } div > .reflection{ background:-moz-element(#someImage) no-repeat; transform:scaleY(-1); }
Only works in Mozilla: http://jsfiddle.net/zorikii/RWfhc/
source share