summaryrefslogtreecommitdiffstats
path: root/dom/plugins/test/mochitest/plugin_scroll_invalidation.html
blob: 74a68ff4acacf92e8b4330d23aca06cbd463b885 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE HTML>
<html>
<head>
  <title>Test helper for plugin child widgets not being invalidated by scrolling</title>
  <style>
    body {
      background: linear-gradient(red, black);
      width: 200px;
      height: 200px;
    }
    embed {
      position:absolute;
    }
    embed#paint-waiter {
      top: 0px;
      left: 0px;
      width: 0px;
      height: 0px;
    }
    embed#e0 {
      top: 70px;
      left: 70px;
      width: 10px;
      height: 10px;
    }
    embed#e1 {
      top: 60px;
      left: 60px;
      width: 10px;
      height: 20px;
    }
    embed#e2 {
      top: 60px;
      left: 70px;
      width: 20px;
      height: 10px;
    }
    embed#e3 {
      top: 70px;
      left: 80px;
      width: 10px;
      height: 20px;
    }
    embed#e4 {
      top: 80px;
      left: 60px;
      width: 20px;
      height: 10px;
    }
  </style>
</head>
<body>
  <embed id="paint-waiter" type="application/x-test" wmode="window">
  <embed id="e0" type="application/x-test" wmode="window" class="scrolling"/>
  <embed id="e1" type="application/x-test" wmode="window" class="scrolling"/>
  <embed id="e2" type="application/x-test" wmode="window" class="scrolling"/>
  <embed id="e3" type="application/x-test" wmode="window" class="scrolling"/>
  <embed id="e4" type="application/x-test" wmode="window" class="scrolling"/>
</body>
</html>