Bug 1934520 - [devtools] Avoid errors in document-events webconsole listeners for...
[gecko.git] / layout / reftests / text-decoration / 1133392.html
blob46983a1bd8713621e071d42bace4ad0e08535357
1 <!DOCTYPE HTML>
2 <html class="reftest-wait">
3 <title>reftest, bug 1133392</title>
4 <style>
6 p:not(.state-one) > span {
7 text-decoration: underline;
10 p > span > span {
11 vertical-align: -2em;
14 p:not(.state-three) > span > span {
15 visibility: hidden;
18 </style>
20 <p class="state-one"><span>This text<br>
21 has <span>an underline</span>.</span></p>
23 <script>
25 var p = document.getElementsByTagName("p")[0];
26 p.offsetLeft; // flush layout
27 document.getElementsByTagName('p')[0].className = 'state-two';
29 document.addEventListener("MozReftestInvalidate", step_three);
30 function step_three(event) {
31 document.getElementsByTagName('p')[0].className = 'state-three';
32 document.documentElement.classList.remove("reftest-wait");
35 </script>