-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an HTML file where JavaScript changes text color
I wanted this for testing incremental layout, but it's also useful to illustrate a bug I just found.
- Loading branch information
1 parent
fe91f6e
commit 350c0a6
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
window.setTimeout(function () { | ||
document.getElementsByTagName('div')[0].setAttribute('class', 'blue'); | ||
}, 1000); |
350c0a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from jdm
at kmcallister@350c0a6
350c0a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging kmcallister/servo/test-html = 350c0a6 into auto
350c0a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kmcallister/servo/test-html = 350c0a6 merged ok, testing candidate = a1c02de
350c0a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No active merge of candidate 350c0a6 found, likely manual push to master
350c0a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging kmcallister/servo/test-html = 350c0a6 into auto
350c0a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kmcallister/servo/test-html = 350c0a6 merged ok, testing candidate = b219262
350c0a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
http://servo-buildbot.pub.build.mozilla.org/builders/linux/builds/179
http://servo-buildbot.pub.build.mozilla.org/builders/mac/builds/134
350c0a6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = b219262