Bug 1874684 - Part 37: Fix unified compilation. r=allstarschh
[gecko.git] / layout / reftests / reftest-sanity / reftest-opaque-layer-wait-fail.html
blob50e1dd86e3f8978e368dc8f7f692bc38c625f1e5
1 <!DOCTYPE html>
2 <html lang="en" class="reftest-wait">
3 <meta charset="utf-8">
4 <title>The fixed layer can't be opaque in the final paint, so this test must fail.</title>
6 <style>
8 .content {
9 box-sizing: border-box;
10 width: 200px;
11 height: 200px;
12 border: 1px solid black;
15 .fixed {
16 position: fixed;
17 top: 20px;
18 left: 140px;
21 .reftest-wait .reftest-opaque-layer {
22 /* make the layer opaque until the final paint */
23 background-color: white;
26 body {
27 height: 4000px;
30 </style>
32 <div class="content reftest-opaque-layer"></div>
34 <div class="fixed content reftest-opaque-layer"></div>
36 <script>
38 function doTest() {
39 document.documentElement.removeAttribute("class");
41 document.addEventListener("MozReftestInvalidate", doTest);
43 </script>