2 <html class=
"reftest-wait">
10 host
= document
.getElementById("host");
11 root
= host
.attachShadow({mode
: 'open'});
12 root
.innerHTML
= '<style>input ~ div { background: red; transition: background 100ms; } input:checked ~ div { background: green; }</style><input id="one" type="checkbox"><div style="height: 50px; width: 50px;"></div>';
15 var el
= root
.getElementById("one");
17 el
.nextSibling
.addEventListener("transitionend", function() {
18 setTimeout(()=>{document
.documentElement
.removeAttribute("class")}, 1000); // wait for the checkbox SVG image to load on Android
22 window
.addEventListener("MozReftestInvalidate", tweak
);