number-reframe-anon-text-field.html (1106B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <style> 5 6 input { 7 font-size: 30pt; 8 background-color: lightblue; 9 } 10 11 </style> 12 <script> 13 14 document.addEventListener("DOMContentLoaded", function() { 15 document.body.style.backgroundImage = "none"; 16 }); 17 18 function PostRebuildAllStyleDataEvent() { 19 // trigger http://mxr.mozilla.org/mozilla-central/source/layout/base/RestyleManager.cpp?rev=a8b06549f680#1490 20 var m = document.createElementNS("http://www.w3.org/1998/Math/MathML", "math"); 21 document.head.appendChild(m); 22 document.head.removeChild(m); 23 } 24 25 function reframe() { 26 PostRebuildAllStyleDataEvent(); 27 document.documentElement.className = ""; 28 } 29 30 document.addEventListener("MozReftestInvalidate", function() { 31 // Calling reframe now would be too early to reproduce the bug that we're 32 // testing for. Note that in the event that we start faling this test this 33 // timeout may make the failure seem intermittent when in fact we would 34 // always fail if it was longer. 35 setTimeout(reframe, 500); 36 }); 37 38 </script> 39 </head> 40 <body> 41 <input type="number"> 42 </body> 43 </html>