summaryrefslogtreecommitdiffstats
path: root/layout/reftests/transform-3d/preserve3d-scale.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /layout/reftests/transform-3d/preserve3d-scale.html
parentInitial commit. (diff)
downloadfirefox-upstream/124.0.1.tar.xz
firefox-upstream/124.0.1.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/transform-3d/preserve3d-scale.html')
-rw-r--r--layout/reftests/transform-3d/preserve3d-scale.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/layout/reftests/transform-3d/preserve3d-scale.html b/layout/reftests/transform-3d/preserve3d-scale.html
new file mode 100644
index 0000000000..099ef078de
--- /dev/null
+++ b/layout/reftests/transform-3d/preserve3d-scale.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html>
+ <style>
+ svg{
+ display: block;
+ margin: auto;
+ -webkit-transform-origin: top center;
+ -webkit-transform: scale(1.5);
+ }
+ #cube{
+ position: absolute;
+ left: 25px;
+ top: 25px;
+ width: 74px;
+ height: 74px;
+ backface-visibility: visible;
+ -webkit-transform-style: preserve-3d;
+ -webkit-transform-origin: center center;
+ -webkit-backface-visibility: visible;
+ -webkit-transform: rotateX(-45deg) rotateY(50deg);
+ -webkit-transition: -webkit-transform 1s;
+ }
+
+ .side{
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 74px;
+ height: 74px;
+ backface-visibility: visible;
+ -webkit-transform-origin: center center;
+ -webkit-backface-visibility: visible;
+ }
+
+ #cube .side:nth-child(1) {
+ -webkit-transform: translateY(37px) rotateX(90deg);
+ transform: translateY(37px) rotateX(90deg);
+ }
+
+ #cube .side:nth-child(2) {
+ -webkit-transform: translateY(-37px) rotateX(-90deg);
+ transform: translateY(-37px) rotateX(-90deg);
+
+ }
+ </style>
+</head>
+<body>
+ <div id="cube">
+ <svg class="side" width="100px" height="100px">
+ <rect fill="#DAD6CC" width="74" height="74"></rect>
+ <circle fill="#F8F1E5" cx="37" cy="37" r="27"></circle>
+ <g>
+ </g>
+ </svg>
+ <svg class="side" width="100px" height="100px">
+ <rect fill="#DAD6CC" width="74" height="74"></rect>
+ <circle fill="#F8F1E5" cx="37" cy="37" r="27"></circle>
+ <g>
+ </g>
+ </svg>
+
+ </div>
+</body></html>