summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/perspective-translateZ-0.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-transforms/perspective-translateZ-0.html')
-rw-r--r--testing/web-platform/tests/css/css-transforms/perspective-translateZ-0.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-transforms/perspective-translateZ-0.html b/testing/web-platform/tests/css/css-transforms/perspective-translateZ-0.html
new file mode 100644
index 0000000000..eca8e4de5a
--- /dev/null
+++ b/testing/web-platform/tests/css/css-transforms/perspective-translateZ-0.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>CSS Transforms Test: perspective property</title>
+ <link rel="author" title="Andres Ugarte" href="mailto:anduga@gmail.com">
+ <link rel="help" href="http://www.w3.org/TR/css-transforms-2/#perspective-property">
+ <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property">
+ <link rel="match" href="reference/perspective-reftest.html">
+ <meta name="assert" content="Asserts that points on the z=0 plane are unchanged">
+ <style type="text/css">
+ .container {
+ position: absolute;
+ width: 150px;
+ height: 150px;
+ top: 100px;
+ left: 100px;
+ perspective: 3px;
+ }
+ .redSquare {
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ width: 150px;
+ height: 150px;
+ background: red;
+ transform: translateZ(0px);
+ }
+ .greenSquare {
+ position: absolute;
+ top: 25px;
+ left: 25px;
+ width: 100px;
+ height: 100px;
+ background: green;
+ transform: translateZ(1px);
+ }
+ </style>
+</head>
+<body>
+ <p>The test passes if there is a green square and no red.</p>
+ <div class="container">
+ <div class="redSquare"></div>
+ <div class="greenSquare"></div>
+ </div>
+</body>
+</html> \ No newline at end of file