17 lines
500 B
HTML
17 lines
500 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<svg id="box">
|
|
<foreignObject width="100" height="100">
|
|
This is long text that wraps.
|
|
</foreignObject>
|
|
</svg>
|
|
<script>
|
|
document.addEventListener("MozReftestInvalidate", doTest, false);
|
|
setTimeout(doTest, 4000); // fallback for running outside reftest
|
|
|
|
function doTest() {
|
|
document.querySelector("foreignObject").style.lineHeight = 3;
|
|
document.documentElement.removeAttribute('class');
|
|
}
|
|
</script>
|
|
</htmml>
|