summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/ttwf-css-3d-polygon-cycle.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-transforms/ttwf-css-3d-polygon-cycle.html
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-transforms/ttwf-css-3d-polygon-cycle.html')
-rw-r--r--testing/web-platform/tests/css/css-transforms/ttwf-css-3d-polygon-cycle.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-transforms/ttwf-css-3d-polygon-cycle.html b/testing/web-platform/tests/css/css-transforms/ttwf-css-3d-polygon-cycle.html
new file mode 100644
index 0000000000..857ba80cfb
--- /dev/null
+++ b/testing/web-platform/tests/css/css-transforms/ttwf-css-3d-polygon-cycle.html
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+<html>
+<!-- Submitted from TestTWF Paris -->
+<head>
+ <title>CSS Transforms Test: 3d transform polygon cycle</title>
+ <link rel="author" title="Leo Ziegler" href="mailto:leo.ziegler@gmail.com">
+ <link rel="help" href="http://www.w3.org/TR/css-transforms-2/#3d-transform-rendering">
+ <!-- See also: http://http://en.wikipedia.org/wiki/Newell's_algorithm -->
+ <link rel="match" href="reference/ttwf-css-3d-polygon-cycle-ref.html">
+ <meta name="fuzzy" content="maxDifference=0-113;totalPixels=0-674">
+ <meta name="flags" content="svg">
+ <meta name="assert"
+ content="The red, green and blue rectangles are forming a cycle, which should be detected and rendered using Newell Algorithm's.">
+ <style type="text/css">
+ #container {
+ position: absolute;
+ top: 100px;
+ left: 100px;
+ transform-style: preserve-3d;
+ }
+ .rect {
+ position: absolute;
+ }
+ #red {
+ background-color: red;
+ width: 200px;
+ height: 50px;
+ transform: rotateY(20deg);
+ }
+ #green {
+ background-color: green;
+ width: 50px;
+ height: 200px;
+ transform: rotateX(20deg);
+ }
+ #blue {
+ background-color: blue;
+ width: 50px;
+ height: 200px;
+ transform: rotate(45deg) translate(50px, -50px) rotateX(-20deg);
+ }
+ </style>
+</head>
+<body>
+ <p>The test passes if there red is over green, green is over blue and blue is over red.</p>
+ <div id="container">
+ <div class="rect" id="red"></div>
+ <div class="rect" id="green"></div>
+ <div class="rect" id="blue"></div>
+ </div>
+</body>
+</html>