diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /layout/reftests/invalidation/negative-w-component.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/invalidation/negative-w-component.html')
-rw-r--r-- | layout/reftests/invalidation/negative-w-component.html | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/layout/reftests/invalidation/negative-w-component.html b/layout/reftests/invalidation/negative-w-component.html new file mode 100644 index 0000000000..4e27fd5edb --- /dev/null +++ b/layout/reftests/invalidation/negative-w-component.html @@ -0,0 +1,86 @@ +<!DOCTYPE html> +<html lang="en" class="reftest-wait"> +<meta charset="utf-8"> +<title>Change a layer's transform making negative w component.</title> + +<style> + +body { + background-color: white; + overflow: hidden; +} + +#outer { + perspective: 500px; + perspective-origin: 350px 250px; + width: 700px; + height: 500px; + display: block; + top: 10px; + left: 10px; + position: absolute; + overflow: visible; +} + +#container1 { + transform-style: preserve-3d; + transform: translateX(-50px) translateZ(350px) rotateY(-90deg); +} + +#container2 { + transform-style: preserve-3d; + transform: translateY(-200px) translateX(50px) translateZ(350px) rotateY(90deg); +} + +#scale { + transform-style: preserve-3d; +} + +.negw { + transform: translateZ(1px); +} + +.posw { + transform: translateZ(-500px);; +} + +#dummy { + transform-style: preserve-3d; + transform: translateY(150px); +} + +#square1, #square2 { + background-color: red; + width: 700px; + height: 200px; +} + +</style> + +<body> + +<div id="outer"> + <div id="scale" class="negw"> + <div id="dummy"> + <div id="container1"> + <div id="square1"></div> + </div> + <div id="container2"> + <div id="square2"></div> + </div> + </div> + </div> +</div> + +<script> + +var scale = document.getElementById("scale"); + +function doTest() { + scale.className = "posw"; + document.documentElement.removeAttribute("class"); +} + +document.addEventListener("MozReftestInvalidate", doTest); + +</script> |