DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (409f3966645a)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Moving a layer in a box with a rounded clip shouldn't invalidate.</title>

<style>

#outer {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 300px;
  height: 200px;
  background-color: #DDD;
  overflow: hidden;
  border-radius: 10px;
}

#animatedLeft {
  position: absolute;
  top: 50px;
  left: 40px;
  box-model: border-box;
  border: 1px solid lime;
  width: 100px;
  height: 100px;
}

</style>

<body>

<div id="outer">
  <div id="animatedLeft" class="reftest-no-paint"></div>
</div>

<script>

var animatedLeft = document.getElementById("animatedLeft");

function doTest() {
  animatedLeft.style.left = "100px";
  document.documentElement.removeAttribute("class");
}

// Layerize #animatedLeft
animatedLeft.offsetLeft;
animatedLeft.style.left = "60px";
animatedLeft.offsetLeft;
animatedLeft.style.left = "40px";
animatedLeft.offsetLeft;

document.addEventListener("MozReftestInvalidate", doTest);

</script>