mask-layer-2.html 586 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <meta charset="utf-8">
  4. <title>border-radius should work correctly for elements with perspective and preserve-3d</title>
  5. <style>
  6. #a {
  7. position: relative;
  8. width: 300px;
  9. height: 300px;
  10. border-radius: 10px;
  11. overflow: hidden;
  12. background: red;
  13. perspective: 1000px;
  14. }
  15. #b {
  16. height: 100%;
  17. transform-style: preserve-3d;
  18. transform: rotateX(90deg);
  19. }
  20. #c {
  21. position: relative;
  22. background: green;
  23. height: 100%;
  24. width: 10000px;
  25. transform: rotateX(90deg);
  26. }
  27. </style>
  28. <div id="a">
  29. <div id="b">
  30. <div id="c"></div>
  31. </div>
  32. </div>