auto merge of #618 : kmcallister/servo/test-html, r=jdm,jdm

I wanted this for testing incremental layout, but it's also useful to illustrate a bug I just found.

(PR attempt #2, hopefully Bors won't flip out this time)
This commit is contained in:
bors-servo 2013-07-25 08:45:27 -07:00
commit b219262f0a
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<style>
.red { color: red; }
.blue { color: blue; }
</style>
<script src="color-change-text.js"></script>
</head>
<body>
<div id="change" class="red">Hello, World!</div>
</body>
</html>

View file

@ -0,0 +1,3 @@
window.setTimeout(function () {
document.getElementsByTagName('div')[0].setAttribute('class', 'blue');
}, 1000);