summaryrefslogtreecommitdiffstats
path: root/layout/reftests/invalidation/border-radius-1.html
blob: 075864d7c2ac18a95d6a120acd03cc6c81bbc455 (plain)
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
<!DOCTYPE html>
<html lang="en" class="reftest-wait">
<meta charset="utf-8">
<title>Changes to border-radius bounding rect should invalidate correctly.</title>

<style>

body {
  margin: 0;
}

#background {
  width: 200px;
  height: 200px;
  border-radius: 100px;
  overflow:hidden;
}

#inner {
  width: 400px;
  height: 400px;
  background-color: red;
}
</style>

<div id="background">
  <div id="inner"></div>
</div>

<script>

function doTest() {
  document.querySelector("#background").style.width = "300px";
  document.documentElement.removeAttribute("class");
}
document.addEventListener("MozReftestInvalidate", doTest);

</script>