https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9378d5fbbb755a6c82682e31cfa23167f16c9361 authored by Greg Fraley on 28 March 2018, 19:18:04 UTC
Use unicode-segmentation to iterate graphemes instead of chars
Tip revision: 9378d5f
reftest-wait.html
<!DOCTYPE html>
<html class="reftest-wait">
<title>Test infrastructure should support 'reftest-wait'</title>
<link rel="match" href="reftest-wait-ref.html">
<style>
.marker {
    margin-bottom: 10px;
    background: red;
    height: 50px;
    width: 50px;
}
</style>
<script>
setTimeout(function() {
    document.querySelector(".marker").style.background = 'green';
    document.documentElement.classList.remove("reftest-wait");
}, 1000);
</script>
<div class="marker"></div>
<div>The box above should be green.</div>
</html>
back to top