https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d687e029cdd49250b4446518d1d4ad11d5354e0a authored by Philip Jägenstedt on 03 December 2018, 14:22:18 UTC
Rename audio-output idlharness test for secure context change
Tip revision: d687e02
perspective-translateZ-positive.html
<!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 the scaling is proportional to d/(d - Z) for a positive Z">
    <style type="text/css">
        .redContainer {
            position: absolute;
            width: 150px;
            height: 150px;
            top: 100px;
            left: 100px;
            perspective: 3px;
            background: red;
        }
        .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="redContainer">
        <div class="greenSquare"></div>
    </div>
</body>
</html>
back to top